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