This commit is contained in:
Aleksandr Lebedev 2024-12-17 19:11:42 +01:00
parent 1682c71bdf
commit 1306f250fa
5 changed files with 43 additions and 4 deletions

37
flake.lock generated
View file

@ -140,6 +140,26 @@
"type": "github" "type": "github"
} }
}, },
"disko": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1734343412,
"narHash": "sha256-b7G8oFp0Nj01BYUJ6ENC9Qf/HsYAIZvN9k/p0Kg/PFU=",
"owner": "nix-community",
"repo": "disko",
"rev": "a08bfe06b39e94eec98dd089a2c1b18af01fef19",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "disko",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"locked": { "locked": {
"lastModified": 1688025799, "lastModified": 1688025799,
@ -650,6 +670,21 @@
"type": "github" "type": "github"
} }
}, },
"impermanence": {
"locked": {
"lastModified": 1734200366,
"narHash": "sha256-0NursoP4BUdnc+wy+Mq3icHkXu/RgP1Sjo0MJxV2+Dw=",
"owner": "nix-community",
"repo": "impermanence",
"rev": "c6323585fa0035d780e3d8906eb1b24b65d19a48",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "impermanence",
"type": "github"
}
},
"ixx": { "ixx": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@ -873,8 +908,10 @@
"root": { "root": {
"inputs": { "inputs": {
"apple-silicon-support": "apple-silicon-support", "apple-silicon-support": "apple-silicon-support",
"disko": "disko",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"impermanence": "impermanence",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
"nixvim": "nixvim", "nixvim": "nixvim",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",

View file

@ -79,7 +79,7 @@
# }; # };
# }; # };
modules = [ modules = [
inputs.impermanence.nixosModules.impermamence inputs.impermanence.nixosModules.impermanence
inputs.disko.nixosModules.default inputs.disko.nixosModules.default
(import ./nixos/modules/disko/impermanence-disko.nix { device = "/dev/nvme0n1"; } ) (import ./nixos/modules/disko/impermanence-disko.nix { device = "/dev/nvme0n1"; } )
./nixos/modules/impermanence ./nixos/modules/impermanence

View file

@ -17,7 +17,7 @@
./nixvim ./nixvim
./fastfetch ./fastfetch
#"${if hostname != "nixosbtw" then ./macos/homemac.nix else ./empty.nix }" #"${if hostname != "nixosbtw" then ./macos/homemac.nix else ./empty.nix }"
] ++ if hwconfig.useImpermanence then [ ./modules/impermanence/home.nix ] else []; ] ++ (if hwconfig.useImpermanence then [ ./modules/impermanence/home.nix ] else []);
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
home.username = username; home.username = username;

View file

@ -1,4 +1,4 @@
{ ... }: { lib, ... }:
{ {
fileSystems."/persist".neededForBoot = true; fileSystems."/persist".neededForBoot = true;

View file

@ -1,4 +1,4 @@
{ username, ... }: { username, inputs, ... }:
{ {
imports = [ imports = [
inputs.impermanence.nixosModules.home-manager.impermanence inputs.impermanence.nixosModules.home-manager.impermanence
@ -11,6 +11,8 @@
"Documents" "Documents"
"Videos" "Videos"
"VirtualBox VMs" "VirtualBox VMs"
"Git"
"blender"
".gnupg" ".gnupg"
".ssh" ".ssh"
".nixops" ".nixops"