Refactor user config files

This commit is contained in:
2021-11-11 21:50:19 +00:00
parent cdf7b2c907
commit 029d4123fd
3 changed files with 134 additions and 130 deletions

4
flake.lock generated
View File

@@ -26,8 +26,8 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1636132244, "lastModified": 1636508828,
"narHash": "sha256-uIfXaXszC0YSgEjPWE97o/JR4WS5bqJ8BcrKYz9ex4Y=", "narHash": "sha256-qgjgowDhUF3Kb4KKzJGd5VtKEHkDqn4unEexPauPvgs=",
"type": "git", "type": "git",
"url": "file:///home/daniel/go/src/i3utils" "url": "file:///home/daniel/go/src/i3utils"
}, },

View File

@@ -11,30 +11,32 @@
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
home.username = "daniel"; services.dunst.enable = true;
home.homeDirectory = "/home/daniel";
home.file = { home = {
username = "daniel";
homeDirectory = "/home/daniel";
file = {
".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors"; ".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors";
"bin/system-update.sh" = { "bin/system-update.sh" = {
source = ../../scripts/system-update.sh; source = ../../scripts/system-update.sh;
executable = true; executable = true;
}; };
"bin/home-update.sh" = { "bin/home-update.sh" = {
source = ../../scripts/home-update.sh; source = ../../scripts/home-update.sh;
executable = true; executable = true;
}; };
"bin/update.sh" = { "bin/update.sh" = {
source = ../../scripts/update.sh; source = ../../scripts/update.sh;
executable = true; executable = true;
}; };
}; };
xsession.enable = true; packages = with pkgs; [
services.dunst.enable = true;
home.packages = with pkgs; [
cargo cargo
chezmoi chezmoi
discord discord
@@ -59,13 +61,16 @@
zettlr zettlr
]; ];
home.keyboard = { keyboard = {
layout = "gb"; layout = "gb";
options = [ options = [
"caps:escape" "caps:escape"
]; ];
}; };
stateVersion = "21.05";
};
programs = { programs = {
zsh = { zsh = {
enable = true; enable = true;
@@ -75,19 +80,14 @@
theme = "agnoster"; theme = "agnoster";
}; };
}; };
}; git = {
programs.git = {
enable = true; enable = true;
userName = "Daniel Patterson"; userName = "Daniel Patterson";
userEmail = "me@danielpatterson.dev"; userEmail = "me@danielpatterson.dev";
}; };
programs.starship.enable = true; starship.enable = true;
programs.vscode = { vscode.enable = true;
enable = true;
}; };
home.stateVersion = "21.05";
} }

View File

@@ -3,7 +3,10 @@
let let
mod = "Mod4"; mod = "Mod4";
in { in {
xsession.windowManager.i3 = { xsession = {
enable = true;
windowManager.i3 = {
enable = true; enable = true;
config = { config = {
bars = [ ]; bars = [ ];
@@ -76,4 +79,5 @@ in {
}; };
}; };
};
} }