enable cachix, work towards wayland
This commit is contained in:
parent
a4a64f273d
commit
92c466c247
2 changed files with 16 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,4 @@
|
|||
result/
|
||||
result
|
||||
flake.lock
|
||||
*.qcow2
|
||||
|
|
|
@ -3,13 +3,19 @@
|
|||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
use-x11 = true;
|
||||
in
|
||||
{
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
};
|
||||
};
|
||||
|
||||
imports =
|
||||
|
@ -51,11 +57,11 @@
|
|||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
services.xserver.enable = use-x11;
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
services.xserver.displayManager.sddm.enable = use-x11;
|
||||
services.xserver.desktopManager.plasma5.enable = use-x11;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
|
@ -63,6 +69,8 @@
|
|||
xkbVariant = "";
|
||||
};
|
||||
|
||||
programs.hyprland.enable = !use-x11;
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
|
@ -127,6 +135,7 @@
|
|||
neovim
|
||||
wget
|
||||
unzip
|
||||
wayland
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
|
Loading…
Reference in a new issue