mirror of
https://github.com/zoriya/flake.git
synced 2025-12-05 22:26:21 +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";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
impermanence = {
|
||||
url = "github:nix-community/impermanence";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
impermanence.url = "github:nix-community/impermanence";
|
||||
hyprland = {
|
||||
url = "github:hyprwm/Hyprland/v0.22.0beta";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -65,7 +62,9 @@
|
||||
|
||||
({pkgs, ...}: {
|
||||
networking.hostName = hostname;
|
||||
users.users.root.hashedPassword = builtins.readFile ./password/root;
|
||||
users.users.${user} = {
|
||||
hashedPassword = builtins.readFile ./password/${user};
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel" "input" "docker" "audio"];
|
||||
shell = pkgs.zsh;
|
||||
@@ -105,7 +104,7 @@
|
||||
programs.zsh.enable = true;
|
||||
environment.shells = with pkgs; [zsh];
|
||||
virtualisation.docker.enable = true;
|
||||
environment.systemPackages = with pkgs; [docker-compose];
|
||||
environment.systemPackages = with pkgs; [docker-compose git];
|
||||
})
|
||||
|
||||
tuxedo-nixos.nixosModules.default
|
||||
|
||||
@@ -21,12 +21,12 @@
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-uuid/e8f1fdc5-c5fc-4468-b92a-63b7b4093345";
|
||||
device = "/dev/disk/by-label/fuhen";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/D229-F68F";
|
||||
device = "/dev/disk/by-label/boot";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
boot.loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 4;
|
||||
# configurationLimit = 4;
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
@@ -33,7 +33,6 @@ in {
|
||||
directories = [
|
||||
"/var/log"
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/nixos"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/docker"
|
||||
"/etc/NetworkManager/system-connections"
|
||||
@@ -52,6 +51,9 @@ in {
|
||||
".local/share/flatpak"
|
||||
".local/share/atuin"
|
||||
".config/google-chrome"
|
||||
# Don't reinstall plugins on reboot
|
||||
".local/share/nvim"
|
||||
".local/state/nvim"
|
||||
];
|
||||
files = [ ];
|
||||
};
|
||||
|
||||
1
password/.gitignore
vendored
Normal file
1
password/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*
|
||||
Reference in New Issue
Block a user