forked from extern/zaneyos
Move EVERYTHING to options.nix and add good persistant directories
This commit is contained in:
parent
c3492b2af2
commit
52416fe6b2
@ -19,6 +19,9 @@
|
||||
"Pictures"
|
||||
"Videos"
|
||||
".local/share/sddm"
|
||||
".mozilla"
|
||||
".cache"
|
||||
".ssh"
|
||||
];
|
||||
files = [
|
||||
];
|
||||
|
@ -21,8 +21,7 @@
|
||||
outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
username = builtins.exec "echo $USER";
|
||||
hostname = builtins.exec "hostname";
|
||||
inherit (import ./options.nix) username hostname;
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
|
11
options.nix
11
options.nix
@ -3,10 +3,15 @@
|
||||
# https://gitlab.com/Zaney/zaneyos/-/wikis/Setting-Options
|
||||
|
||||
let
|
||||
# YOU MUST CHANGE THIS
|
||||
userHome = builtins.exec "eval echo ~$USER";
|
||||
username = "zaney";
|
||||
hostname = "hyprnix";
|
||||
userHome = "/home/${username}";
|
||||
flakeDir = #"${userHome}/zaneyos";
|
||||
"/nix/persist/etc/nixos/zaneyos";
|
||||
in {
|
||||
# User Variables
|
||||
username = "${username}";
|
||||
hostname = "${hostname}";
|
||||
gitUsername = "Tyler Kelley";
|
||||
gitEmail = "tylerzanekelley@gmail.com";
|
||||
theme = "gigavolt";
|
||||
@ -15,8 +20,8 @@ in {
|
||||
browser = "firefox";
|
||||
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
||||
wallpaperDir = "${userHome}/Pictures/Wallpapers";
|
||||
flakeDir = "${userHome}/zaneyos";
|
||||
screenshotDir = "${userHome}/Pictures/Screenshots";
|
||||
flakeDir = "${flakeDir}";
|
||||
terminal = "alacritty";
|
||||
|
||||
# System Settings
|
||||
|
Loading…
Reference in New Issue
Block a user