mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
hacked together some basic netboot stuff
This commit is contained in:
parent
fbbb68ee06
commit
8b37b0adfc
5 changed files with 48 additions and 6 deletions
|
@ -43,11 +43,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1684610121,
|
||||
"narHash": "sha256-mp1wfJ4VkMgK/yex4jeBhd2yd6CqFXYAIv6e1lnDGjI=",
|
||||
"lastModified": 1684672698,
|
||||
"narHash": "sha256-qHH7BFAzbWG4uzeDLolqNfvgBYHy+shzn8uJu9YDllg=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "5627b70981730cf1839ae4477f9fd086d4fc7a6c",
|
||||
"rev": "9f8c5cb63c239ffd09b69cb0c635e8870dbd667e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
25
flake.nix
25
flake.nix
|
@ -52,7 +52,7 @@
|
|||
# packages.x86_64-linux.circuitjs = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/circuitjs { };
|
||||
hydraJobs = self.packages;
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
||||
nixosConfigurations = {
|
||||
nixosConfigurations = rec {
|
||||
thinkpad = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = attrs;
|
||||
|
@ -86,6 +86,20 @@
|
|||
./hosts/nuc
|
||||
./shared
|
||||
sops-nix.nixosModules.sops
|
||||
|
||||
# hacking this into here since it somehow doesnt' work as module
|
||||
{
|
||||
services.pixiecore = rec {
|
||||
enable = true;
|
||||
port = 64172;
|
||||
statusPort = port;
|
||||
openFirewall = true;
|
||||
kernel = "${netboot.config.system.build.kernel}/bzImage";
|
||||
initrd = "${netboot.config.system.build.netbootRamdisk}/initrd";
|
||||
cmdLine = "init=${netboot.config.system.build.toplevel}/init loglevel=4";
|
||||
};
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
falkenstein-1 = nixpkgs.lib.nixosSystem {
|
||||
|
@ -119,6 +133,15 @@
|
|||
./shared/vim.nix
|
||||
];
|
||||
};
|
||||
netboot = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs.inputs = attrs;
|
||||
modules = [
|
||||
./hosts/netboot
|
||||
./shared/caches.nix
|
||||
./shared/vim.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
19
hosts/netboot/default.nix
Normal file
19
hosts/netboot/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
"${modulesPath}/installer/netboot/netboot-minimal.nix"
|
||||
|
||||
];
|
||||
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "dvorak";
|
||||
};
|
||||
programs.git.enable = true;
|
||||
|
||||
# in case we need to rescue a zfs machine
|
||||
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.greetd}/bin/agreety --cmd Hyprland";
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd Hyprland";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# essentials
|
||||
wpa_supplicant_gui # manage wifi
|
||||
xfce.thunar
|
||||
cinnamon.nemo
|
||||
xdg-utils # used for xdg-open
|
||||
snapper-gui
|
||||
|
||||
|
|
Loading…
Reference in a new issue