extract i3-specific parts

This commit is contained in:
Cyryl Płotnicki 2020-01-03 17:28:21 +00:00
parent 0c8eb1e5a8
commit a81b2a1a08
4 changed files with 21 additions and 8 deletions

View file

@ -1,6 +1,5 @@
{ config, pkgs, ... }:
{
networking.hostName = "foureighty";
nixpkgs.config.packageOverrides = pkgs: {
linux_latest_hardened = pkgs.linux_latest_hardened.override {
@ -67,5 +66,6 @@
../gfx-intel.nix
../virtualbox.nix
../zerotier.nix
../i3/root.nix
];
}

View file

@ -39,9 +39,6 @@
timerConfig = { OnCalendar = "hourly"; };
};
autorandr.enable = true;
colord.enable = true;
xserver = {
enable = true;
layout = "pl";
@ -58,10 +55,6 @@
Option "AccelMethod" "sna"
'';
displayManager.sddm = {
enable = true;
enableHidpi = true;
};
};
};
}

9
nixos/gnome.nix Normal file
View file

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.wayland = false;
services.xserver.desktopManager.gnome3.enable = true;
}

11
nixos/i3/root.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
services = {
colord.enable = true;
autorandr.enable = true;
xserver.displayManager.sddm = {
enable = true;
enableHidpi = true;
};
};
}