95 lines
1.8 KiB
Nix
95 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
username = "h";
|
|
hostName = "astynanax";
|
|
in
|
|
{
|
|
system.stateVersion = "25.05";
|
|
|
|
imports = [
|
|
inputs.disko.nixosModules.disko
|
|
inputs.sops-nix.nixosModules.sops
|
|
inputs.home-manager.nixosModules.default
|
|
./hard.nix
|
|
../../modules/bootloader.nix
|
|
(import ../../modules/disko.zfs-encrypted-root.nix {
|
|
inherit lib;
|
|
inherit config;
|
|
device = "/dev/nvme0n1";
|
|
})
|
|
../../modules/gnome.nix
|
|
../../modules/bluetooth.nix
|
|
../../modules/keyboard
|
|
(import ../../modules/networking.nix { hostName = hostName; })
|
|
../../modules/users.nix
|
|
../../modules/audio.nix
|
|
../../modules/localization.nix
|
|
../../modules/fonts
|
|
../../modules/ssh/hardened-openssh.nix
|
|
(import ../../modules/secrets {
|
|
inherit lib;
|
|
inherit inputs;
|
|
inherit config;
|
|
inherit username;
|
|
})
|
|
];
|
|
|
|
secrets.username = username;
|
|
|
|
environment.systemPackages = [ inputs.nvim.packages.x86_64-linux.nvim ];
|
|
|
|
nix.settings.experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.${username} = import ../../home/hosts/astyanax {
|
|
inherit inputs;
|
|
inherit config;
|
|
inherit pkgs;
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
hostId = "80eef97e";
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
harden = true;
|
|
};
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = true;
|
|
folders = {
|
|
"/home/h/sync" = {
|
|
id = "sync";
|
|
devices = [ ];
|
|
};
|
|
};
|
|
devices = {
|
|
# "device1" = {
|
|
# id = "DEVICE-ID-GOES-HERE";
|
|
# };
|
|
};
|
|
};
|
|
|
|
services.locate = {
|
|
enable = true;
|
|
package = pkgs.plocate;
|
|
};
|
|
}
|