Compare commits
3 Commits
640cc88ae1
...
5cd90444a4
| Author | SHA1 | Date | |
|---|---|---|---|
| 5cd90444a4 | |||
| 0e2537fa7d | |||
| 6e762f1821 |
@@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./cpufreq.nix
|
||||
./flakes.nix
|
||||
./kernel.nix
|
||||
./locale.nix
|
||||
./network.nix
|
||||
./nix.nix
|
||||
|
||||
4
common/global/kernel.nix
Normal file
4
common/global/kernel.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
}
|
||||
@@ -2,15 +2,17 @@
|
||||
{
|
||||
imports = [ inputs.impermanence.nixosModules.impermanence ];
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
directories = [ "/var/lib/nixos" ];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
"/etc/ssh/ssh_host_rsa_key"
|
||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||
];
|
||||
environment.persistence = {
|
||||
"/persist" = {
|
||||
directories = [ "/var/lib/nixos" ];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
"/etc/ssh/ssh_host_rsa_key"
|
||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/".options = [
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
useUserPackages = true;
|
||||
users.ppetru = {
|
||||
imports = [
|
||||
(inputs.impermanence + "/home-manager.nix")
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
./home
|
||||
];
|
||||
|
||||
@@ -17,6 +17,15 @@ in
|
||||
shellAliases = {
|
||||
reload-home-manager-config = "home-manager switch --flake ${builtins.toString ./.}";
|
||||
};
|
||||
|
||||
persistence."/persist/home/ppetru" = {
|
||||
directories = [
|
||||
".ssh"
|
||||
"projects"
|
||||
];
|
||||
files = [ ];
|
||||
allowOther = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs = import ./programs.nix;
|
||||
|
||||
Reference in New Issue
Block a user