Compare commits
No commits in common. "0c12c8de3590fb4931fc1eb3a725c3eeaf00ee00" and "65720489b501597a59b967c073f1bfeb78729140" have entirely different histories.
0c12c8de35
...
65720489b5
16 changed files with 258 additions and 183 deletions
128
flake.lock
generated
128
flake.lock
generated
|
@ -101,6 +101,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flakey-profile": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1712898590,
|
||||||
|
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
|
||||||
|
"owner": "lf-",
|
||||||
|
"repo": "flakey-profile",
|
||||||
|
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lf-",
|
||||||
|
"repo": "flakey-profile",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -129,11 +144,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747439237,
|
"lastModified": 1745251259,
|
||||||
"narHash": "sha256-5rCGrnkglKKj4cav1U3HC+SIUNJh08pqOK4spQv9RjA=",
|
"narHash": "sha256-Hf8WEJMMoP6Fe+k+PYkVJFk5UKory2S0jW7HqRVqQFc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ae755329092c87369b9e9a1510a8cf1ce2b1c708",
|
"rev": "82ee14ff60611b46588ea852f267aafcc117c8c8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -156,6 +171,43 @@
|
||||||
"url": "https://git.dadada.li/dadada/dadada.li/archive/main.tar.gz"
|
"url": "https://git.dadada.li/dadada/dadada.li/archive/main.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"lix": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1729298361,
|
||||||
|
"narHash": "sha256-hiGtfzxFkDc9TSYsb96Whg0vnqBVV7CUxyscZNhed0U=",
|
||||||
|
"rev": "ad9d06f7838a25beec425ff406fe68721fef73be",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/ad9d06f7838a25beec425ff406fe68721fef73be.tar.gz?rev=ad9d06f7838a25beec425ff406fe68721fef73be"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://git.lix.systems/lix-project/lix/archive/2.91.1.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lix-module": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": [
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
|
"flakey-profile": "flakey-profile",
|
||||||
|
"lix": "lix",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1732605668,
|
||||||
|
"narHash": "sha256-DN5/166jhiiAW0Uw6nueXaGTueVxhfZISAkoxasmz/g=",
|
||||||
|
"rev": "f19bd752910bbe3a861c9cad269bd078689d50fe",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/f19bd752910bbe3a861c9cad269bd078689d50fe.tar.gz?rev=f19bd752910bbe3a861c9cad269bd078689d50fe"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixlib": {
|
"nixlib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736643958,
|
"lastModified": 1736643958,
|
||||||
|
@ -194,11 +246,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747129300,
|
"lastModified": 1744633460,
|
||||||
"narHash": "sha256-L3clA5YGeYCF47ghsI7Tcex+DnaaN/BbQ4dR2wzoiKg=",
|
"narHash": "sha256-fbWE4Xpw6eH0Q6in+ymNuDwTkqmFmtxcQEmtRuKDTTk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "e81fd167b33121269149c57806599045fd33eeed",
|
"rev": "9a049b4a421076d27fee3eec664a18b2066824cb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -210,11 +262,43 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747327360,
|
"lastModified": 1744917357,
|
||||||
"narHash": "sha256-LSmTbiq/nqZR9B2t4MRnWG7cb0KVNU70dB7RT4+wYK4=",
|
"narHash": "sha256-1Sj8MToixDwakJYNMYBS/PYbg8Oa4CAxreXraMHB5qg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e06158e58f3adee28b139e9c2bcfcc41f8625b46",
|
"rev": "1eae3268880484be84199bdb77941c09bb4a97ba",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11-small",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-full": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1744440957,
|
||||||
|
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1744932701,
|
||||||
|
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -224,22 +308,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-small": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747452614,
|
|
||||||
"narHash": "sha256-hSEz6JHZTJJTeIudt0SK3UoZnfThHwKCUGvSe5/zn8g=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "e067fb89ac3e59f993f257c799318132f1492f01",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable-small",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
@ -248,10 +316,12 @@
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"homepage": "homepage",
|
"homepage": "homepage",
|
||||||
|
"lix-module": "lix-module",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-small": "nixpkgs-small",
|
"nixpkgs-full": "nixpkgs-full",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
}
|
}
|
||||||
|
@ -278,11 +348,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747469671,
|
"lastModified": 1744961264,
|
||||||
"narHash": "sha256-bo1ptiFoNqm6m1B2iAhJmWCBmqveLVvxom6xKmtuzjg=",
|
"narHash": "sha256-aRmUh0AMwcbdjJHnytg1e5h5ECcaWtIFQa6d9gI85AI=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "ab0378b61b0d85e73a8ab05d5c6029b5bd58c9fb",
|
"rev": "8d404a69efe76146368885110f29a2ca3700bee6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -2,8 +2,9 @@
|
||||||
description = "dadada's nix flake";
|
description = "dadada's nix flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11-small";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
nixpkgs-full.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
flake-utils = {
|
flake-utils = {
|
||||||
url = "github:numtide/flake-utils";
|
url = "github:numtide/flake-utils";
|
||||||
inputs.systems.follows = "systems";
|
inputs.systems.follows = "systems";
|
||||||
|
@ -25,6 +26,11 @@
|
||||||
url = "github:numtide/devshell";
|
url = "github:numtide/devshell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
lix-module = {
|
||||||
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
inputs.flake-utils.follows = "flake-utils";
|
||||||
|
};
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -19,24 +19,24 @@ let
|
||||||
"helix"
|
"helix"
|
||||||
];
|
];
|
||||||
colors = {
|
colors = {
|
||||||
background = "fdf6e3";
|
background = "ffffff";
|
||||||
foreground = "657b83";
|
foreground = "000000";
|
||||||
regular0 = "eee8d5"; # background darker
|
regular0 = "000000";
|
||||||
regular1 = "dc322f"; # red
|
regular1 = "000000";
|
||||||
regular2 = "859900"; # green
|
regular2 = "000000";
|
||||||
regular3 = "b58900"; # dark orange
|
regular3 = "000000";
|
||||||
regular4 = "268bd2"; # azure blue
|
regular4 = "000000";
|
||||||
regular5 = "d33682"; # hot pink
|
regular5 = "000000";
|
||||||
regular6 = "2aa198"; # petrol
|
regular6 = "000000";
|
||||||
regular7 = "073642"; # navy
|
regular7 = "000000";
|
||||||
bright0 = "cb4b16"; # orange
|
bright0 = "ffffff";
|
||||||
bright1 = "fdf6e3"; # foreground
|
bright1 = "ffffff";
|
||||||
bright2 = "93a1a1"; # grey
|
bright2 = "ffffff";
|
||||||
bright3 = "839496"; # slightly darker grey
|
bright3 = "ffffff";
|
||||||
bright4 = "657b83"; # even slightly darker grey
|
bright4 = "ffffff";
|
||||||
bright5 = "6c71c4"; # purple
|
bright5 = "ffffff";
|
||||||
bright6 = "586e75"; # pretty dark grey
|
bright6 = "ffffff";
|
||||||
bright7 = "002b36"; # dark navy blue
|
bright7 = "ffffff";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -403,11 +403,11 @@ in
|
||||||
bindsym $mod+grave exec busctl --user call org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow lockAllDatabases && swaylock -c #fdf6e3
|
bindsym $mod+grave exec busctl --user call org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow lockAllDatabases && swaylock -c #fdf6e3
|
||||||
|
|
||||||
# class border backgr. text indicator child_border
|
# class border backgr. text indicator child_border
|
||||||
client.focused #${bright6} #${foreground} #${background} #${bright5} #${regular4}
|
client.focused #${background} #${foreground} #${background} #${foreground} #${background}
|
||||||
client.focused_inactive #${regular0} #${regular0} #${foreground} #${bright5} #${regular0}
|
client.focused_inactive #${background} #${background} #${foreground} #${foreground} #${background}
|
||||||
client.unfocused #${regular0} #${background} #${bright2} #${bright5} #${regular0}
|
client.unfocused #${background} #${background} #${foreground} #${foreground} #${background}
|
||||||
client.urgent #${bright1} #${bright0} #${regular4} #${background} #${bright0}
|
client.urgent #${background} #${background} #${foreground} #${foreground} #${background}
|
||||||
client.placeholder #${background} #${bright2} #${foreground} #${background} #${bright2}
|
client.placeholder #${background} #${background} #${foreground} #${foreground} #${background}
|
||||||
|
|
||||||
client.background #${foreground}
|
client.background #${foreground}
|
||||||
|
|
||||||
|
@ -432,8 +432,6 @@ in
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.poweralertd.enable = true;
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ in
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
env.TERM = "xterm-256color";
|
env.TERM = "xterm-mono";
|
||||||
scrolling.history = 0;
|
scrolling.history = 0;
|
||||||
font = {
|
font = {
|
||||||
size = 9;
|
size = 9;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
theme = "solarized_light"
|
theme = "black"
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
line-number = "relative"
|
line-number = "relative"
|
||||||
|
|
34
home/modules/helix/config/themes/black.toml
Normal file
34
home/modules/helix/config/themes/black.toml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
"ui.background" = {bg="white"}
|
||||||
|
"ui.text" = "black"
|
||||||
|
"ui.linenr" = {bg="white", fg="black"}
|
||||||
|
"ui.linenr.selected" = {bg="white", fg="black"}
|
||||||
|
"ui.selection" = {modifiers=["reversed"]}
|
||||||
|
"ui.cursorline" = {modifiers=["reversed"]}
|
||||||
|
"ui.statusline" = {modifiers=["reversed"]}
|
||||||
|
"ui.statusline.inactive" = {fg="black", bg="white"}
|
||||||
|
"ui.virtual" = "indent"
|
||||||
|
"ui.virtual.ruler" = { bg = "black", fg ="white" }
|
||||||
|
"ui.cursor.match" = {modifiers=["reversed"]}
|
||||||
|
"ui.cursor" = {modifiers=["reversed"]}
|
||||||
|
"ui.debug" = {fg="black"}
|
||||||
|
"ui.highlight" = { modifiers = ["underlined"] }
|
||||||
|
"ui.highlight.frameline" = {modifiers=["reversed"]}
|
||||||
|
"ui.help" = { modifiers=["reversed"] }
|
||||||
|
"ui.popup" = { modifiers=["reversed"] }
|
||||||
|
"ui.popup.info" = { modifiers=["reversed"] }
|
||||||
|
"ui.text.info" = { modifiers=["reversed"] }
|
||||||
|
"ui.menu" = { bg="black", fg="white" }
|
||||||
|
"ui.menu.selected" = { bg="white", fg="black" }
|
||||||
|
"ui.window" = { bg="white" }
|
||||||
|
"diagnostic" = { modifiers=["reversed"] }
|
||||||
|
"diagnostic.error" = {modifiers=["bold", "underlined"]}
|
||||||
|
"diagnostic.warning" = {modifiers=["underlined", "italic"]}
|
||||||
|
"diagnostic.hint" = {modifiers=["underlined"]}
|
||||||
|
"diagnostic.unnecessary" = {modifiers = ["dim"]}
|
||||||
|
"diagnostic.deprecated" = {modifiers = ["crossed_out"]}
|
||||||
|
"ui.bufferline" = { fg="black", bg="white" }
|
||||||
|
"ui.bufferline.active" = { fg="black", bg="white" }
|
||||||
|
|
||||||
|
[palette]
|
||||||
|
white = "#ffffff"
|
||||||
|
black = "#000000"
|
|
@ -12,17 +12,17 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
terminal = "tmux-256color";
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
set -g set-clipboard external
|
set -g set-clipboard external
|
||||||
set -g set-titles on
|
set -g set-titles on
|
||||||
set -g status on
|
set -g status on
|
||||||
set -ga terminal-overrides ',*256col*:Tc'
|
|
||||||
set-option -g status-interval 5
|
set-option -g status-interval 5
|
||||||
set-option -g automatic-rename on
|
set-option -g automatic-rename on
|
||||||
set-option -g automatic-rename-format '#{b:pane_current_path}'
|
set-option -g automatic-rename-format '#{b:pane_current_path}'
|
||||||
|
set -g status-bg "#000000"
|
||||||
|
set -g status-fg "#ffffff"
|
||||||
bind '"' split-window -c "#{pane_current_path}"
|
bind '"' split-window -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
|
@ -20,6 +20,7 @@ in
|
||||||
autocd = true;
|
autocd = true;
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
|
TERM = "xterm-mono";
|
||||||
};
|
};
|
||||||
history = {
|
history = {
|
||||||
extended = true;
|
extended = true;
|
||||||
|
@ -44,6 +45,7 @@ in
|
||||||
|
|
||||||
PROMPT="%F{red}%?%f %F{green}%m%f:%F{blue}%~%f"$'\n'"╰─> "
|
PROMPT="%F{red}%?%f %F{green}%m%f:%F{blue}%~%f"$'\n'"╰─> "
|
||||||
RPROMPT='$(git_super_status)'
|
RPROMPT='$(git_super_status)'
|
||||||
|
#NIX_BUILD_SHELL="${pkgs.zsh}/bin/zsh"
|
||||||
'';
|
'';
|
||||||
profileExtra = ''
|
profileExtra = ''
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,57 +1,46 @@
|
||||||
{
|
{ self
|
||||||
self,
|
, agenix
|
||||||
agenix,
|
, lix-module
|
||||||
home-manager,
|
, nixpkgs
|
||||||
homepage,
|
, nixpkgs-full
|
||||||
nixos-hardware,
|
, home-manager
|
||||||
nixos-generators,
|
, homepage
|
||||||
nixpkgs,
|
, nixos-hardware
|
||||||
nixpkgs-small,
|
, nixos-generators
|
||||||
...
|
, nixpkgs-unstable
|
||||||
|
, ...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
nixosSystem =
|
lixModule = lix-module.nixosModules.default;
|
||||||
{
|
|
||||||
nixpkgs,
|
nixosSystem = { n_nixpkgs ? nixpkgs, system ? "x86_64-linux", extraModules ? [ ] }: n_nixpkgs.lib.nixosSystem {
|
||||||
system ? "x86_64-linux",
|
|
||||||
extraModules ? [ ],
|
|
||||||
}:
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules =
|
modules = [
|
||||||
[
|
lixModule
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = nixpkgs.lib.attrValues self.overlays;
|
nixpkgs.overlays = n_nixpkgs.lib.attrValues self.overlays;
|
||||||
}
|
}
|
||||||
]
|
] ++ (n_nixpkgs.lib.attrValues self.nixosModules) ++ [ agenix.nixosModules.age ] ++ extraModules;
|
||||||
++ (nixpkgs.lib.attrValues self.nixosModules)
|
|
||||||
++ [ agenix.nixosModules.age ]
|
|
||||||
++ extraModules;
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
gorgon =
|
gorgon = nixosSystem rec {
|
||||||
let
|
n_nixpkgs = nixpkgs-unstable;
|
||||||
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in
|
|
||||||
nixosSystem {
|
|
||||||
inherit nixpkgs system;
|
|
||||||
|
|
||||||
extraModules = [
|
extraModules = [
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = nixpkgs.lib.attrValues self.overlays;
|
nixpkgs.overlays = nixpkgs.lib.attrValues self.overlays;
|
||||||
dadada.pkgs = self.packages.${system};
|
dadada.pkgs = self.packages.${system};
|
||||||
dadada.inputs = inputs // {
|
dadada.inputs = inputs // { dadada = self; };
|
||||||
dadada = self;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nixos-hardware.nixosModules.lenovo-thinkpad-t14s-amd-gen1
|
nixos-hardware.nixosModules.lenovo-thinkpad-t14s-amd-gen1
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
(
|
({ pkgs, lib, ... }:
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
@ -60,14 +49,12 @@ in
|
||||||
{ manual.manpages.enable = false; }
|
{ manual.manpages.enable = false; }
|
||||||
];
|
];
|
||||||
home-manager.users.dadada = import ../home;
|
home-manager.users.dadada = import ../home;
|
||||||
}
|
})
|
||||||
)
|
|
||||||
./gorgon/configuration.nix
|
./gorgon/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
surgat = nixosSystem {
|
surgat = nixosSystem {
|
||||||
nixpkgs = nixpkgs-small;
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
extraModules = [
|
extraModules = [
|
||||||
{
|
{
|
||||||
|
@ -79,19 +66,15 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
agares = nixosSystem {
|
agares = nixosSystem {
|
||||||
nixpkgs = nixpkgs-small;
|
|
||||||
extraModules = [
|
extraModules = [
|
||||||
./agares/configuration.nix
|
./agares/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
installer =
|
installer = nixpkgs.lib.nixosSystem {
|
||||||
let
|
|
||||||
nixpkgs = nixpkgs-small;
|
|
||||||
in
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
lixModule
|
||||||
nixos-generators.nixosModules.install-iso
|
nixos-generators.nixosModules.install-iso
|
||||||
self.nixosModules.admin
|
self.nixosModules.admin
|
||||||
{
|
{
|
||||||
|
@ -110,7 +93,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
ninurta = nixosSystem {
|
ninurta = nixosSystem {
|
||||||
nixpkgs = nixpkgs-small;
|
n_nixpkgs = nixpkgs-full;
|
||||||
extraModules = [
|
extraModules = [
|
||||||
./ninurta/configuration.nix
|
./ninurta/configuration.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
mkDefault = lib.mkDefault;
|
mkDefault = lib.mkDefault;
|
||||||
inputs = config.dadada.inputs;
|
inputs = config.dadada.inputs;
|
||||||
|
@ -22,8 +22,6 @@ in
|
||||||
|
|
||||||
time.timeZone = mkDefault "Europe/Berlin";
|
time.timeZone = mkDefault "Europe/Berlin";
|
||||||
|
|
||||||
nix.package = pkgs.lix;
|
|
||||||
|
|
||||||
nix.settings.substituters = [ https://cache.nixos.org/ ];
|
nix.settings.substituters = [ https://cache.nixos.org/ ];
|
||||||
|
|
||||||
nix.settings.trusted-public-keys = [
|
nix.settings.trusted-public-keys = [
|
||||||
|
|
|
@ -5,19 +5,11 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot.initrd.availableKernelModules = [ "virtio-pci" ];
|
boot.initrd.availableKernelModules = [ "virtio-pci" ];
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
# Wait forever for the filesystem root to show up
|
|
||||||
"rootflags=x-systemd.device-timeout=0"
|
|
||||||
|
|
||||||
# Wait forever to enter the LUKS passphrase via SSH
|
|
||||||
"rd.luks.options=timeout=0"
|
|
||||||
];
|
|
||||||
boot.initrd.network = {
|
boot.initrd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 2223;
|
port = 22;
|
||||||
hostKeys = [
|
hostKeys = [
|
||||||
config.age.secrets."${initrdHostKey}".path
|
config.age.secrets."${initrdHostKey}".path
|
||||||
];
|
];
|
||||||
|
@ -35,13 +27,8 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
assertions = lib.singleton {
|
|
||||||
assertion = (config.boot.initrd.network.ssh.hostKeys != [ ]) -> config.boot.loader.supportsInitrdSecrets == true;
|
|
||||||
message = "Refusing to store private keys in store";
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets."${initrdHostKey}" = {
|
age.secrets."${initrdHostKey}" = {
|
||||||
file = "${secretsPath}/initrd-${initrdHostKey}.age";
|
file = "${secretsPath}/${initrdHostKey}.age";
|
||||||
mode = "600";
|
mode = "600";
|
||||||
path = "/etc/initrd/${initrdHostKey}";
|
path = "/etc/initrd/${initrdHostKey}";
|
||||||
symlink = false;
|
symlink = false;
|
||||||
|
|
|
@ -20,7 +20,6 @@ with lib; {
|
||||||
|
|
||||||
services.journald.extraConfig = ''
|
services.journald.extraConfig = ''
|
||||||
SystemKeepFree = 2G
|
SystemKeepFree = 2G
|
||||||
MaxRetentionSec = 100days
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
|
|
|
@ -137,10 +137,6 @@ in
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
"ip=49.12.3.98::172.31.1.1:255.255.255.255:surgat::dhcp"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fallbackDns = [ "9.9.9.9" "2620:fe::fe" ];
|
fallbackDns = [ "9.9.9.9" "2620:fe::fe" ];
|
||||||
|
|
25
outputs.nix
25
outputs.nix
|
@ -1,14 +1,18 @@
|
||||||
# Adapted from Mic92/dotfiles
|
# Adapted from Mic92/dotfiles
|
||||||
{
|
{ self
|
||||||
self,
|
, flake-utils
|
||||||
flake-utils,
|
, flake-registry
|
||||||
nixpkgs,
|
, homepage
|
||||||
agenix,
|
, lix-module
|
||||||
devshell,
|
, nixpkgs
|
||||||
...
|
, home-manager
|
||||||
|
, nixos-hardware
|
||||||
|
, nixpkgs-full
|
||||||
|
, agenix
|
||||||
|
, devshell
|
||||||
|
, ...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
(flake-utils.lib.eachDefaultSystem (
|
(flake-utils.lib.eachDefaultSystem (system:
|
||||||
system:
|
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in
|
in
|
||||||
|
@ -31,8 +35,7 @@
|
||||||
packages = import ./pkgs { inherit pkgs; } // {
|
packages = import ./pkgs { inherit pkgs; } // {
|
||||||
installer-iso = self.nixosConfigurations.installer.config.system.build.isoImage;
|
installer-iso = self.nixosConfigurations.installer.config.system.build.isoImage;
|
||||||
};
|
};
|
||||||
}
|
}))
|
||||||
))
|
|
||||||
// {
|
// {
|
||||||
|
|
||||||
hmModules = import ./home/modules.nix { lib = nixpkgs.lib; };
|
hmModules = import ./home/modules.nix { lib = nixpkgs.lib; };
|
||||||
|
|
Binary file not shown.
|
@ -21,7 +21,6 @@ in
|
||||||
"miniflux-admin-credentials.age".publicKeys = [ systems.surgat dadada ];
|
"miniflux-admin-credentials.age".publicKeys = [ systems.surgat dadada ];
|
||||||
"gorgon-backup-passphrase-gs.age".publicKeys = [ systems.gorgon dadada ];
|
"gorgon-backup-passphrase-gs.age".publicKeys = [ systems.gorgon dadada ];
|
||||||
"paperless.age".publicKeys = [ systems.gorgon dadada ];
|
"paperless.age".publicKeys = [ systems.gorgon dadada ];
|
||||||
"initrd-surgat-ssh_host_ed25519_key.age".publicKeys = [ systems.surgat dadada ];
|
|
||||||
"surgat-ssh_host_ed25519_key.age".publicKeys = [ systems.surgat dadada ];
|
"surgat-ssh_host_ed25519_key.age".publicKeys = [ systems.surgat dadada ];
|
||||||
"ninurta-initrd-ssh-key.age".publicKeys = [ systems.ninurta dadada ];
|
"ninurta-initrd-ssh-key.age".publicKeys = [ systems.ninurta dadada ];
|
||||||
"ddns-credentials.age".publicKeys = [ systems.agares systems.ninurta dadada ];
|
"ddns-credentials.age".publicKeys = [ systems.agares systems.ninurta dadada ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue