initial nixos-config
This commit is contained in:
14
hosts/modules/auto-upgrade.nix
Normal file
14
hosts/modules/auto-upgrade.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ config, inputs, ... }:
|
||||
let
|
||||
inherit (config.networking) hostName; # Inherit variable
|
||||
isClean = inputs.self ? rev; # Only enable if current config came from clean tree
|
||||
in
|
||||
{
|
||||
system.autoUpgrade = { # NixOS auto upgrade
|
||||
enable = isClean;
|
||||
dates = "hourly";
|
||||
flags = [
|
||||
"--refresh"
|
||||
];
|
||||
};
|
||||
}
|
17
hosts/modules/gnome.nix
Normal file
17
hosts/modules/gnome.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
};
|
||||
gnome.core-utilities.enable = false;
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.dash-to-dock
|
||||
gnomeExtensions.gsconnect
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user