working flakes

This commit is contained in:
John Lancaster
2024-12-07 19:16:26 +00:00
parent 92324773ff
commit a6348adef1
5 changed files with 223 additions and 14 deletions

View File

@@ -8,12 +8,11 @@ in
system.stateVersion = stateVersion;
imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix")
(import "${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz}/nixos")
(fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/master")
(import ./loki.nix { inherit pkgs; inherit userName; })
];
time.timeZone = "America/Chicago";
# time.timeZone = "America/Chicago";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
(pkgs.writeShellScriptBin "nrbs" "sudo nixos-rebuild switch")
@@ -30,20 +29,10 @@ in
# Networking stuff
services.avahi = { enable = true; nssmdns4 = true; };
services.vscode-server.enable = true;
# Uses rust-based sudo
security.sudo-rs = {
enable = true;
execWheelOnly = false;
wheelNeedsPassword = false; # allows sudo without password for those in the wheel group
};
home-manager = {
useGlobalPkgs = true;
users.root = {
home.stateVersion = stateVersion;
imports = [ (import ./git.nix { inherit repoPath; }) ];
};
};
}