hyprland yeet
This commit is contained in:
parent
1a500b92dc
commit
218fbf0993
3 changed files with 181 additions and 14 deletions
|
|
@ -2,16 +2,10 @@
|
|||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ lib, config, pkgs, ... }: let
|
||||
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
||||
|
||||
hyprland = (import flake-compat {
|
||||
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz";
|
||||
}).defaultNix;
|
||||
in {
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
hyprland.nixosModules.default
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
|
|
@ -27,7 +21,9 @@ in {
|
|||
nix.settings.trusted-users = [ "root" "tristan" ];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.devices = ["nodev"];
|
||||
boot.loader.grub.useOSProber = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixbookpro"; # Define your hostname.
|
||||
|
|
@ -61,6 +57,8 @@ in {
|
|||
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
security.doas.enable = true;
|
||||
|
||||
# Configure graphical stuff
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
|
@ -109,10 +107,10 @@ in {
|
|||
programs.light.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
# programs.hyprland = {
|
||||
# enable = true;
|
||||
# xwayland.enable = true;
|
||||
# };
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue