mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 10:30:14 +01:00
split out gnome
This commit is contained in:
parent
76a7a31ef6
commit
833f3f79e2
9
README.md
Normal file
9
README.md
Normal 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
|
39
common.nix
39
common.nix
|
@ -9,16 +9,7 @@
|
|||
./home.nix
|
||||
];
|
||||
|
||||
nixpkgs.config = {
|
||||
# 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;
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
boot = {
|
||||
# supportedFilesystems = [ "btrfs" ];
|
||||
|
@ -83,10 +74,6 @@
|
|||
# Enable the X11 windowing system / wayland depending on DE
|
||||
enable = true;
|
||||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
layout = "de";
|
||||
xkbVariant = "";
|
||||
|
@ -104,10 +91,6 @@
|
|||
permitRootLogin = "no";
|
||||
};
|
||||
|
||||
gnome = {
|
||||
tracker-miners.enable = false;
|
||||
tracker.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
|
@ -161,24 +144,6 @@
|
|||
package = pkgs.gitFull;
|
||||
};
|
||||
|
||||
environment = {
|
||||
# List packages installed in system profile.
|
||||
systemPackages = with pkgs; [
|
||||
# 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
|
||||
];
|
||||
};
|
||||
# environment.systemPackages = [];
|
||||
}
|
||||
|
|
32
gnome.nix
Normal file
32
gnome.nix
Normal 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
|
||||
];
|
||||
}
|
10
home.nix
10
home.nix
|
@ -3,6 +3,13 @@
|
|||
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
|
||||
users.users.vinzenz = {
|
||||
isNormalUser = true;
|
||||
|
@ -118,6 +125,9 @@
|
|||
extensions = [pkgs.vscode-extensions.bbenoist.nix];
|
||||
userSettings = {
|
||||
"files.insertFinalNewline" = true;
|
||||
"[nix]" = {
|
||||
"editor.tabSize" = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
networking.hostName = "vinzenz-lpt";
|
||||
|
||||
imports = [
|
||||
./common.nix
|
||||
./vinzenz-lpt-hardware-configuration.nix
|
||||
./common.nix
|
||||
./gnome.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue