Updated server configuration

This commit is contained in:
Nickiel12 2023-03-31 17:38:15 -07:00
parent 1e708cffab
commit 24d2c6bf88
5 changed files with 26 additions and 11 deletions

View file

@ -25,6 +25,29 @@
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
inherit inputs nixpkgs home-manager user kmonad ; inherit inputs nixpkgs home-manager user kmonad ;
# Home server
Alaska = lib.nixossystem {
inherit system;
specialArgs = { inherit user; };
modules = [
{
networking.hostName = "Alaska";
}
./hosts/Alaska
./hosts/Alaska/configuration.nix
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = import ./users/${user}.nix;
};
}
];
};
NicksNixLaptop = lib.nixosSystem { NicksNixLaptop = lib.nixosSystem {
inherit system; inherit system;
specialArgs = { inherit user; }; specialArgs = { inherit user; };

View file

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, lib, pkgs, user, inputs, ... }: { config, lib, pkgs, user, inputs, ... }:
{ {
@ -12,10 +8,9 @@
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
system.autoUpgrade.enable = true;
nix.gc = { nix.gc = {
automatic = true; automatic = true;
options = "--delete-generations 8d"; options = "--delete-generations 20d";
}; };
programs.zsh.enable = true; programs.zsh.enable = true;

View file

View file

@ -1,5 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ (import ./hardware-configuration.nix) ]; imports = [ (import ./hardware-configuration.nix) ];

View file

@ -1,5 +0,0 @@
{ config, lib, pkgs, ... }:
{
}