Files
nixos-config/nixos-configurations/pc/default.nix

71 lines
1.2 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../shared.nix
];
networking.hostName = "pc";
2023-06-03 08:00:22 +02:00
hardware.opengl.enable = true;
2023-05-25 11:40:57 +02:00
2023-06-03 06:48:05 +02:00
security.polkit.enable = true;
2023-06-03 09:29:28 +02:00
# Make swaylock work
security.pam.services.swaylock = {
text = ''
auth include login
'';
};
2023-06-03 10:00:27 +02:00
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
2023-06-02 09:39:05 +02:00
home-manager.users.thiloho = { pkgs, ... }: {
wayland.windowManager.sway = {
enable = true;
2023-06-03 10:00:27 +02:00
wrapperFeatures.gtk = true;
config = {
modifier = "Mod1";
terminal = "alacritty";
2023-06-03 08:46:21 +02:00
menu = "bemenu-run";
2023-06-03 06:16:02 +02:00
output = {
DP-1 = {
2023-06-03 06:20:32 +02:00
res = "1920x1080@144.000Hz";
2023-06-03 06:16:02 +02:00
};
DP-2 = {
2023-06-03 06:20:32 +02:00
res = "1920x1080@144.000Hz";
2023-06-03 06:16:02 +02:00
};
};
2023-06-03 05:37:30 +02:00
};
2023-06-03 08:19:53 +02:00
xwayland = false;
};
2023-06-03 10:04:13 +02:00
gtk = {
enable = true;
theme = {
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita-dark";
};
};
2023-06-03 09:23:30 +02:00
programs = {
git = {
signing = {
key = "29791D54E85BEE9E";
};
2023-05-25 11:40:57 +02:00
};
2023-06-03 09:23:30 +02:00
swaylock.enable = true;
2023-05-25 11:40:57 +02:00
};
2023-06-03 08:46:21 +02:00
home.packages = with pkgs; [
2023-06-03 10:04:13 +02:00
dconf
2023-06-03 08:46:21 +02:00
bemenu
];
};
}