formatting

This commit is contained in:
Vinzenz Schroeter 2024-07-21 14:10:41 +02:00
parent 517753081e
commit 16c9d8e615
3 changed files with 11 additions and 10 deletions

View file

@ -17,7 +17,7 @@ in {
desktopManager.gnome.enable = true; desktopManager.gnome.enable = true;
displayManager = { displayManager = {
gdm.enable = true; gdm.enable = true;
}; };
}; };
displayManager.defaultSession = "gnome"; displayManager.defaultSession = "gnome";

View file

@ -12,7 +12,7 @@ in {
services = { services = {
# Enable CUPS to print documents. # Enable CUPS to print documents.
printing.enable = true; printing.enable = true;
avahi = { avahi = {
enable = true; # runs the Avahi daemon enable = true; # runs the Avahi daemon
nssmdns4 = true; # enables the mDNS NSS plug-in nssmdns4 = true; # enables the mDNS NSS plug-in

View file

@ -15,7 +15,8 @@ in {
imports = [ imports = [
# this switches the nix implementation to lix everywhere, but means recompiling lix every build. # this switches the nix implementation to lix everywhere, but means recompiling lix every build.
# https://lix.systems/add-to-config/ # https://lix.systems/add-to-config/
(let (
let
module = fetchTarball { module = fetchTarball {
name = "source"; name = "source";
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz"; url = "https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz";
@ -26,7 +27,8 @@ in {
url = "https://git.lix.systems/lix-project/lix/archive/2.90.0.tar.gz"; url = "https://git.lix.systems/lix-project/lix/archive/2.90.0.tar.gz";
sha256 = "sha256-f8k+BezKdJfmE+k7zgBJiohtS3VkkriycdXYsKOm3sc="; sha256 = "sha256-f8k+BezKdJfmE+k7zgBJiohtS3VkkriycdXYsKOm3sc=";
}; };
in import "${module}/module.nix" { lix = lixSrc; } in
import "${module}/module.nix" {lix = lixSrc;}
) )
]; ];
@ -51,6 +53,11 @@ in {
substituters = ["https://nix-community.cachix.org" "https://cache.nixos.org/"]; substituters = ["https://nix-community.cachix.org" "https://cache.nixos.org/"];
trusted-public-keys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="]; trusted-public-keys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="];
}; };
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
}; };
system = { system = {
@ -62,12 +69,6 @@ in {
}; };
}; };
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
documentation = { documentation = {
enable = true; # documentation of packages enable = true; # documentation of packages
nixos.enable = false; # nixos documentation nixos.enable = false; # nixos documentation