use srvos

This commit is contained in:
2025-06-18 20:16:36 -07:00
parent af7f2bba73
commit b17526a212
3 changed files with 40 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
username, username,
eth_interface, eth_interface,
service_configs, service_configs,
options,
... ...
}: }:
{ {
@@ -38,6 +39,15 @@
hybrid-sleep.enable = false; hybrid-sleep.enable = false;
}; };
# srvos enables vim, i don't want to use vim, disable it here:
programs.vim =
{
defaultEditor = false;
}
// lib.optionalAttrs (options.programs.vim ? enable) {
enable = false;
};
powerManagement = { powerManagement = {
powertop.enable = true; powertop.enable = true;
enable = true; enable = true;

21
flake.lock generated
View File

@@ -331,6 +331,7 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-qbt": "nixpkgs-qbt", "nixpkgs-qbt": "nixpkgs-qbt",
"srvos": "srvos",
"vpn-confinement": "vpn-confinement" "vpn-confinement": "vpn-confinement"
} }
}, },
@@ -355,6 +356,26 @@
"type": "github" "type": "github"
} }
}, },
"srvos": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1750295173,
"narHash": "sha256-W2dgraLz7VZZz/x+6LGt+hiHb94+FCjfyGfxN0TR+Qo=",
"owner": "nix-community",
"repo": "srvos",
"rev": "7c93b611d175a62f3ce57fbda976c29261525a15",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "srvos",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,

View File

@@ -34,6 +34,11 @@
url = "github:ggml-org/llama.cpp"; url = "github:ggml-org/llama.cpp";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
srvos = {
url = "github:nix-community/srvos";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@@ -47,6 +52,7 @@
lanzaboote, lanzaboote,
disko, disko,
llamacpp, llamacpp,
srvos,
... ...
}@inputs: }@inputs:
let let
@@ -189,6 +195,9 @@
} }
) )
# sets up things like the watchdog
srvos.nixosModules.server
./disk-config.nix ./disk-config.nix
disko.nixosModules.disko disko.nixosModules.disko
./configuration.nix ./configuration.nix