split out gnome

This commit is contained in:
Vinzenz Schroeter 2023-04-04 21:57:12 +02:00
parent 76a7a31ef6
commit 833f3f79e2
5 changed files with 56 additions and 39 deletions

9
README.md Normal file
View file

@ -0,0 +1,9 @@
# nixos-configuration
When adding a new host:
1. install NixOS via the graphical installer
2. `mv /etc/hardware-configuration ./devicename-hardware-configuration.nix`
3. copy an existing devicename.nix
5. change import to new-devicename-hardware-configuration.nix
4. `ln -s ./new-devicename.nix /etc/nixos/configuration`
5. apply

View file

@ -9,16 +9,7 @@
./home.nix ./home.nix
]; ];
nixpkgs.config = { nixpkgs.config.allowUnfree = true;
# override insync build version
packageOverrides = pkgs: {
my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/db254c650b7f5b6657c6579afba1568f7f997195.tar.gz) {
config = config.nixpkgs.config;
};
};
allowUnfree = true;
};
boot = { boot = {
# supportedFilesystems = [ "btrfs" ]; # supportedFilesystems = [ "btrfs" ];
@ -83,10 +74,6 @@
# Enable the X11 windowing system / wayland depending on DE # Enable the X11 windowing system / wayland depending on DE
enable = true; enable = true;
# Enable the GNOME Desktop Environment.
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
# Configure keymap in X11 # Configure keymap in X11
layout = "de"; layout = "de";
xkbVariant = ""; xkbVariant = "";
@ -104,10 +91,6 @@
permitRootLogin = "no"; permitRootLogin = "no";
}; };
gnome = {
tracker-miners.enable = false;
tracker.enable = false;
};
}; };
# Configure console keymap # Configure console keymap
@ -161,24 +144,6 @@
package = pkgs.gitFull; package = pkgs.gitFull;
}; };
environment = {
# List packages installed in system profile. # List packages installed in system profile.
systemPackages = with pkgs; [ # environment.systemPackages = [];
# The Nano editor is also installed by default
];
# remove gnome default apps
gnome.excludePackages = with pkgs.gnome; [
cheese # photo booth
epiphany # web browser
evince # document viewer
geary # email client
seahorse # password manager
gnome-clocks
gnome-maps
gnome-weather
gnome-music
pkgs.gnome-connections
];
};
} }

32
gnome.nix Normal file
View file

@ -0,0 +1,32 @@
{
config,
pkgs,
...
}: {
services = {
xserver = {
# Enable the GNOME Desktop Environment.
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
gnome = {
tracker-miners.enable = false;
tracker.enable = false;
};
};
# remove some gnome default apps
environment.gnome.excludePackages = with pkgs.gnome; [
cheese # photo booth
epiphany # web browser
evince # document viewer
geary # email client
seahorse # password manager
gnome-clocks
gnome-maps
gnome-weather
gnome-music
pkgs.gnome-connections
];
}

View file

@ -3,6 +3,13 @@
pkgs, pkgs,
... ...
}: { }: {
# override insync build version
nixpkgs.config.packageOverrides = pkgs: {
my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/db254c650b7f5b6657c6579afba1568f7f997195.tar.gz) {
config = config.nixpkgs.config;
};
};
# Define user account # Define user account
users.users.vinzenz = { users.users.vinzenz = {
isNormalUser = true; isNormalUser = true;
@ -118,6 +125,9 @@
extensions = [pkgs.vscode-extensions.bbenoist.nix]; extensions = [pkgs.vscode-extensions.bbenoist.nix];
userSettings = { userSettings = {
"files.insertFinalNewline" = true; "files.insertFinalNewline" = true;
"[nix]" = {
"editor.tabSize" = 2;
};
}; };
}; };
}; };

View file

@ -2,7 +2,8 @@
networking.hostName = "vinzenz-lpt"; networking.hostName = "vinzenz-lpt";
imports = [ imports = [
./common.nix
./vinzenz-lpt-hardware-configuration.nix ./vinzenz-lpt-hardware-configuration.nix
./common.nix
./gnome.nix
]; ];
} }