Compare commits

..

No commits in common. "41f62a389045d63fd2269736ec1ae45c003003e0" and "0520f722fd3716b72f356b8b4a50858ae803f343" have entirely different histories.

7 changed files with 15 additions and 28 deletions

6
flake.lock generated
View File

@ -186,11 +186,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1704295289, "lastModified": 1703992652,
"narHash": "sha256-9WZDRfpMqCYL6g/HNWVvXF0hxdaAgwgIGeLYiOhmes8=", "narHash": "sha256-C0o8AUyu8xYgJ36kOxJfXIroy9if/G6aJbNOpA5W0+M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b0b2c5445c64191fd8d0b31f2b1a34e45a64547d", "rev": "32f63574c85fbc80e4ba1fbb932cde9619bad25e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -5,10 +5,6 @@
nixpkgs.url = "nixpkgs/nixos-23.11"; nixpkgs.url = "nixpkgs/nixos-23.11";
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
deploy-rs.url = "github:serokell/deploy-rs"; deploy-rs.url = "github:serokell/deploy-rs";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-23.11"; url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -28,7 +24,7 @@
}; };
}; };
outputs = inputs @ { self, nixpkgs, agenix, deploy-rs, disko, home-manager, nixos-hardware, secrets, ... }: outputs = inputs @ { self, nixpkgs, agenix, deploy-rs, home-manager, nixos-hardware, secrets, ... }:
let let
nixpkgsForSystem = system: inputs.nixpkgs; nixpkgsForSystem = system: inputs.nixpkgs;
overlays = [ overlays = [
@ -37,7 +33,6 @@
]; ];
commonModules = [ commonModules = [
agenix.nixosModules.age agenix.nixosModules.age
disko.nixosModules.disko
home-manager.nixosModule home-manager.nixosModule
./modules ./modules
]; ];
@ -71,7 +66,6 @@
atlas = nixosSystem { system = "x86_64-linux"; name = "atlas"; }; atlas = nixosSystem { system = "x86_64-linux"; name = "atlas"; };
eos = nixosSystem { system = "x86_64-linux"; name = "eos"; }; eos = nixosSystem { system = "x86_64-linux"; name = "eos"; };
helios = nixosSystem { system = "x86_64-linux"; name = "helios"; }; helios = nixosSystem { system = "x86_64-linux"; name = "helios"; };
hypnos = nixosSystem { system = "x86_64-linux"; name = "hypnos"; };
odyssey = nixosSystem { system = "x86_64-linux"; name = "odyssey"; }; odyssey = nixosSystem { system = "x86_64-linux"; name = "odyssey"; };
pi = nixosSystem { system = "aarch64-linux"; name = "pi"; extraModules = [ nixos-hardware.nixosModules.raspberry-pi-4 ]; }; pi = nixosSystem { system = "aarch64-linux"; name = "pi"; extraModules = [ nixos-hardware.nixosModules.raspberry-pi-4 ]; };
}; };

View File

@ -3,7 +3,6 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./disko-config.nix
../desktop.nix ../desktop.nix
]; ];
@ -15,6 +14,7 @@
networking = { networking = {
hostName = "hypnos"; hostName = "hypnos";
hostId = "cf791898"; hostId = "cf791898";
networkmanager.enable = true;
}; };
nix = { nix = {

View File

@ -1,4 +1,3 @@
{ lib, ... }:
{ {
disko.devices = { disko.devices = {
disk = { disk = {
@ -40,16 +39,15 @@
dnodesize = "auto"; dnodesize = "auto";
xattr = "sa"; xattr = "sa";
}; };
mountpoint = "/";
postCreateHook = "zfs snapshot rpool@blank"; postCreateHook = "zfs snapshot rpool@blank";
datasets = { datasets = {
local = { local = {
type = "zfs_fs";
options = { options = {
mountpoint = "none"; mountpoint = "none";
}; };
}; };
"local/nix" = { "local/nix" = {
type = "zfs_fs";
mountpoint = "/nix"; mountpoint = "/nix";
options = { options = {
atime = "off"; atime = "off";
@ -57,7 +55,6 @@
}; };
}; };
"local/tmp" = { "local/tmp" = {
type = "zfs_fs";
mountpoint = "/tmp"; mountpoint = "/tmp";
options = { options = {
setuid = "off"; setuid = "off";
@ -66,21 +63,24 @@
}; };
}; };
system = { system = {
type = "zfs_fs";
mountpoint = "/";
options = { options = {
mountpoint = "legacy"; mountpoint = "none";
encryption = "aes-256-gcm";
keyformat = "passphrase";
keylocation = "file:///tmp/secret.key";
}; };
# use this to read the key during boot
postCreateHook = ''
zfs set keylocation="prompt" "rpool/$name";
'';
}; };
"system/var" = { "system/var" = {
type = "zfs_fs";
mountpoint = "/var"; mountpoint = "/var";
options = { options = {
mountpoint = "legacy"; mountpoint = "legacy";
}; };
}; };
"system/var/tmp" = { "system/var/tmp" = {
type = "zfs_fs";
mountpoint = "/var/tmp"; mountpoint = "/var/tmp";
options = { options = {
devices = "off"; devices = "off";
@ -88,7 +88,6 @@
}; };
}; };
"system/var/log" = { "system/var/log" = {
type = "zfs_fs";
mountpoint = "/var/log"; mountpoint = "/var/log";
options = { options = {
compression = "on"; compression = "on";
@ -97,7 +96,6 @@
}; };
}; };
user = { user = {
type = "zfs_fs";
options = { options = {
mountpoint = "none"; mountpoint = "none";
encryption = "aes-256-gcm"; encryption = "aes-256-gcm";
@ -110,7 +108,6 @@
''; '';
}; };
"user/home" = { "user/home" = {
type = "zfs_fs";
mountpoint = "/home"; mountpoint = "/home";
options = { options = {
setuid = "off"; setuid = "off";

View File

@ -6,7 +6,7 @@
]; ];
boot = { boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; initrd.availableKernelModules = [ "xhci_pci" "achi" "usbhid" "usb_storage" "sd_mod" ];
initrd.kernelModules = [ ]; initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" "wl" ]; kernelModules = [ "kvm-intel" "wl" ];
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];

View File

@ -102,9 +102,6 @@ in {
picture-uri = "file://${pkgs.gnome.gnome-backgrounds}/share/backgrounds/gnome/adwaita-l.jpg"; picture-uri = "file://${pkgs.gnome.gnome-backgrounds}/share/backgrounds/gnome/adwaita-l.jpg";
picture-uri-dark = "file://${pkgs.gnome.gnome-backgrounds}/share/backgrounds/gnome/adwaita-d.jpg"; picture-uri-dark = "file://${pkgs.gnome.gnome-backgrounds}/share/backgrounds/gnome/adwaita-d.jpg";
}; };
"org/gnome/peripherals/touchpad" = {
tap-to-click = true;
};
"org/gtk/settings/file-chooser" = { "org/gtk/settings/file-chooser" = {
show-hidden = true; show-hidden = true;
sort-directories-first = true; sort-directories-first = true;

View File

@ -23,7 +23,6 @@ in {
}; };
networking = { networking = {
networkmanager.unmanaged = [ "*" ];
wireless = { wireless = {
enable = true; enable = true;
interfaces = cfg.interfaces; interfaces = cfg.interfaces;