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"
"Videos"
".local/share/sddm"
".mozilla"
".cache"
".ssh"
];
files = [
];

View File

@ -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;

View File

@ -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