mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Impermanence working?
This commit is contained in:
10
README.md
Normal file
10
README.md
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
1
password/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*
|
||||||
Reference in New Issue
Block a user