Impermanence working?

This commit is contained in:
2023-03-06 23:51:19 +09:00
parent c96a8b6b93
commit 10002a4a39
6 changed files with 21 additions and 9 deletions

10
README.md Normal file
View File

@@ -0,0 +1,10 @@
# Flake
## To install
fdisk DEVICE
200M EFI fat32 labelled boot -> on /boot
ext4 labbelled fuhen -> on /nix
mkdir -p /nix/persist/home (else persisted seems to be bugged)
`nix-shell --run 'mkpasswd -m SHA-512' -p mkpasswd` to generate a password

View File

@@ -7,10 +7,7 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
impermanence = { impermanence.url = "github:nix-community/impermanence";
url = "github:nix-community/impermanence";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = { hyprland = {
url = "github:hyprwm/Hyprland/v0.22.0beta"; url = "github:hyprwm/Hyprland/v0.22.0beta";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -65,7 +62,9 @@
({pkgs, ...}: { ({pkgs, ...}: {
networking.hostName = hostname; networking.hostName = hostname;
users.users.root.hashedPassword = builtins.readFile ./password/root;
users.users.${user} = { users.users.${user} = {
hashedPassword = builtins.readFile ./password/${user};
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel" "input" "docker" "audio"]; extraGroups = ["wheel" "input" "docker" "audio"];
shell = pkgs.zsh; shell = pkgs.zsh;
@@ -105,7 +104,7 @@
programs.zsh.enable = true; programs.zsh.enable = true;
environment.shells = with pkgs; [zsh]; environment.shells = with pkgs; [zsh];
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [docker-compose]; environment.systemPackages = with pkgs; [docker-compose git];
}) })
tuxedo-nixos.nixosModules.default tuxedo-nixos.nixosModules.default

View File

@@ -21,12 +21,12 @@
}; };
fileSystems."/nix" = { fileSystems."/nix" = {
device = "/dev/disk/by-uuid/e8f1fdc5-c5fc-4468-b92a-63b7b4093345"; device = "/dev/disk/by-label/fuhen";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D229-F68F"; device = "/dev/disk/by-label/boot";
fsType = "vfat"; fsType = "vfat";
}; };

View File

@@ -9,7 +9,7 @@
boot.loader = { boot.loader = {
systemd-boot = { systemd-boot = {
enable = true; enable = true;
configurationLimit = 4; # configurationLimit = 4;
}; };
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };

View File

@@ -33,7 +33,6 @@ in {
directories = [ directories = [
"/var/log" "/var/log"
"/var/lib/bluetooth" "/var/lib/bluetooth"
"/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/var/lib/docker" "/var/lib/docker"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
@@ -52,6 +51,9 @@ in {
".local/share/flatpak" ".local/share/flatpak"
".local/share/atuin" ".local/share/atuin"
".config/google-chrome" ".config/google-chrome"
# Don't reinstall plugins on reboot
".local/share/nvim"
".local/state/nvim"
]; ];
files = [ ]; files = [ ];
}; };

1
password/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*