hyperland #5
10 changed files with 89 additions and 16 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
/home/don/nixos/workstation
|
/home/don/nixos/workstation
|
||||||
/home/don/nixos/home
|
/home/don/nixos/home
|
||||||
/home/don/nixos/dm/sway
|
/home/don/nixos/wm/sway
|
||||||
];
|
];
|
||||||
networking.hostName = "ace";
|
networking.hostName = "ace";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
/home/don/nixos/workstation
|
/home/don/nixos/workstation
|
||||||
/home/don/nixos/home
|
/home/don/nixos/home
|
||||||
/home/don/nixos/dm/sway
|
/home/don/nixos/wm/sway
|
||||||
];
|
];
|
||||||
networking.hostName = "dragon";
|
networking.hostName = "dragon";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
/home/don/nixos/workstation
|
/home/don/nixos/workstation
|
||||||
/home/don/nixos/home
|
/home/don/nixos/home
|
||||||
/home/don/nixos/dm/sway
|
/home/don/nixos/wm/sway
|
||||||
|
/home/don/nixos/wm/hyperland
|
||||||
];
|
];
|
||||||
networking.hostName = "eve";
|
networking.hostName = "eve";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
/home/don/nixos/workstation
|
/home/don/nixos/workstation
|
||||||
/home/don/nixos/home
|
/home/don/nixos/home
|
||||||
/home/don/nixos/dm/sway
|
/home/don/nixos/wm/sway
|
||||||
|
/home/don/nixos/wm/hyperland
|
||||||
];
|
];
|
||||||
networking.hostName = "loki";
|
networking.hostName = "loki";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
/home/don/nixos/workstation
|
/home/don/nixos/workstation
|
||||||
/home/don/nixos/home
|
/home/don/nixos/home
|
||||||
/home/don/nixos/dm/sway
|
/home/don/nixos/wm/sway
|
||||||
];
|
];
|
||||||
networking.hostName = "pocket2";
|
networking.hostName = "pocket2";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
/home/don/nixos/workstation
|
/home/don/nixos/workstation
|
||||||
/home/don/nixos/home
|
/home/don/nixos/home
|
||||||
/home/don/nixos/dm/sway
|
/home/don/nixos/wm/sway
|
||||||
];
|
];
|
||||||
networking.hostName = "smaug";
|
networking.hostName = "smaug";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
65
wm/hyperland/default.nix
Normal file
65
wm/hyperland/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
configure-gtk = pkgs.writeTextFile {
|
||||||
|
name = "configure-gtk";
|
||||||
|
destination = "/bin/configure-gtk";
|
||||||
|
executable = true;
|
||||||
|
text = let
|
||||||
|
schema = pkgs.gsettings-desktop-schemas;
|
||||||
|
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
||||||
|
in ''
|
||||||
|
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
||||||
|
gnome_schema=org.gnome.desktop.interface
|
||||||
|
gsettings set $gnome_schema gtk-theme 'Dracula'
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
alacritty
|
||||||
|
bemenu
|
||||||
|
#configure-gtk
|
||||||
|
#dbus-sway-environment
|
||||||
|
dracula-theme # gtk theme
|
||||||
|
glib
|
||||||
|
gnome.adwaita-icon-theme
|
||||||
|
grim
|
||||||
|
mako
|
||||||
|
slurp
|
||||||
|
swaybg
|
||||||
|
swayidle
|
||||||
|
swayimg
|
||||||
|
swaylock-effects
|
||||||
|
swaynotificationcenter
|
||||||
|
waybar
|
||||||
|
wayland
|
||||||
|
wl-clipboard
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# xdg-desktop-portal works by exposing a series of D-Bus interfaces
|
||||||
|
# known as portals under a well-known name
|
||||||
|
# (org.freedesktop.portal.Desktop) and object path
|
||||||
|
# (/org/freedesktop/portal/desktop).
|
||||||
|
# The portal interfaces include APIs for file access, opening URIs,
|
||||||
|
# printing and others.
|
||||||
|
services.dbus.enable = true;
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
# gtk portal needed to make gtk apps happy
|
||||||
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
#gtkUsePortal = true;
|
||||||
|
};
|
||||||
|
# wayland.windowManager.hyprland = {
|
||||||
|
# enable = true;
|
||||||
|
|
||||||
|
# extraConfig = ''
|
||||||
|
# bind = SUPER, Return, exec, kitty
|
||||||
|
# # ...
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
programs.hyprland.enable = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -24,7 +24,7 @@ in
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.enableIPv6 = false; # FIXME this is to test connectivity @ the office via wireguard
|
networking.enableIPv6 = false; # FIXME this is to test connectivity @ the office via tailscale
|
||||||
networking.networkmanager.wifi.powersave = true;
|
networking.networkmanager.wifi.powersave = true;
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
||||||
|
|
@ -45,15 +45,20 @@ in
|
||||||
boot.plymouth.enable = true;
|
boot.plymouth.enable = true;
|
||||||
boot.plymouth.theme = "breeze";
|
boot.plymouth.theme = "breeze";
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security = {
|
||||||
# Enable doas instead of sudo
|
polkit = {
|
||||||
security.sudo.enable = false;
|
enable = true;
|
||||||
security.doas.enable = true;
|
};
|
||||||
security.doas.extraRules = [{
|
sudo.enable = false;
|
||||||
users = [ "don" ];
|
doas = {
|
||||||
keepEnv = true;
|
enable = true;
|
||||||
noPass = true;
|
extraRules = [{
|
||||||
}];
|
users = [ "don" ];
|
||||||
|
keepEnv = true;
|
||||||
|
noPass = true;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
avahi = {
|
avahi = {
|
||||||
|
|
@ -256,6 +261,7 @@ in
|
||||||
vit
|
vit
|
||||||
wget
|
wget
|
||||||
widevine-cdm
|
widevine-cdm
|
||||||
|
wireplumber
|
||||||
wlsunset
|
wlsunset
|
||||||
xdg-utils
|
xdg-utils
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue