1
0
forked from extern/zaneyos

Move EVERYTHING to options.nix and add good persistant directories

This commit is contained in:
Tyler Kelley 2024-02-11 20:05:52 -06:00
parent c3492b2af2
commit 52416fe6b2
3 changed files with 12 additions and 5 deletions

View File

@ -19,6 +19,9 @@
"Pictures" "Pictures"
"Videos" "Videos"
".local/share/sddm" ".local/share/sddm"
".mozilla"
".cache"
".ssh"
]; ];
files = [ files = [
]; ];

View File

@ -21,8 +21,7 @@
outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }: outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
username = builtins.exec "echo $USER"; inherit (import ./options.nix) username hostname;
hostname = builtins.exec "hostname";
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;

View File

@ -3,10 +3,15 @@
# https://gitlab.com/Zaney/zaneyos/-/wikis/Setting-Options # https://gitlab.com/Zaney/zaneyos/-/wikis/Setting-Options
let let
# YOU MUST CHANGE THIS username = "zaney";
userHome = builtins.exec "eval echo ~$USER"; hostname = "hyprnix";
userHome = "/home/${username}";
flakeDir = #"${userHome}/zaneyos";
"/nix/persist/etc/nixos/zaneyos";
in { in {
# User Variables # User Variables
username = "${username}";
hostname = "${hostname}";
gitUsername = "Tyler Kelley"; gitUsername = "Tyler Kelley";
gitEmail = "tylerzanekelley@gmail.com"; gitEmail = "tylerzanekelley@gmail.com";
theme = "gigavolt"; theme = "gigavolt";
@ -15,8 +20,8 @@ in {
browser = "firefox"; browser = "firefox";
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git"; wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
wallpaperDir = "${userHome}/Pictures/Wallpapers"; wallpaperDir = "${userHome}/Pictures/Wallpapers";
flakeDir = "${userHome}/zaneyos";
screenshotDir = "${userHome}/Pictures/Screenshots"; screenshotDir = "${userHome}/Pictures/Screenshots";
flakeDir = "${flakeDir}";
terminal = "alacritty"; terminal = "alacritty";
# System Settings # System Settings