enable cachix, work towards wayland

This commit is contained in:
mehbark 2023-08-14 20:26:55 -04:00
parent a4a64f273d
commit 92c466c247
2 changed files with 16 additions and 4 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
result/ result/
result
flake.lock
*.qcow2

View file

@ -3,13 +3,19 @@
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, ... }:
let
use-x11 = true;
in
{ {
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
}; };
imports = imports =
@ -51,11 +57,11 @@
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = use-x11;
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = true; services.xserver.displayManager.sddm.enable = use-x11;
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = use-x11;
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver = {
@ -63,6 +69,8 @@
xkbVariant = ""; xkbVariant = "";
}; };
programs.hyprland.enable = !use-x11;
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
@ -127,6 +135,7 @@
neovim neovim
wget wget
unzip unzip
wayland
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are