mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
Updated server configuration
This commit is contained in:
parent
1e708cffab
commit
24d2c6bf88
5 changed files with 26 additions and 11 deletions
23
flake.nix
23
flake.nix
|
@ -25,6 +25,29 @@
|
|||
inherit (nixpkgs) lib;
|
||||
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 {
|
||||
inherit system;
|
||||
specialArgs = { inherit user; };
|
||||
|
|
|
@ -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, ... }:
|
||||
|
||||
{
|
||||
|
@ -12,10 +8,9 @@
|
|||
|
||||
nix.settings.auto-optimise-store = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
system.autoUpgrade.enable = true;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-generations 8d";
|
||||
options = "--delete-generations 20d";
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
0
hosts/Alaska/containers/default.nix
Normal file
0
hosts/Alaska/containers/default.nix
Normal file
|
@ -1,5 +1,7 @@
|
|||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
|
||||
{
|
||||
imports = [ (import ./hardware-configuration.nix) ];
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in a new issue