summaryrefslogtreecommitdiff
path: root/config/shared.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2024-11-14 08:21:57 +0100
committerJasper Ras <jras@hostnet.nl>2024-11-14 08:21:57 +0100
commitc88cfb92e38ae7abfd7abb699a108dd3cd537b20 (patch)
tree512884a15e5ad395f25e4f38101004c787f412ff /config/shared.nix
parent4428f370dd343f21b839a1479a5f8ef4e605ebad (diff)
modules -> config etc
Diffstat (limited to 'config/shared.nix')
-rw-r--r--config/shared.nix77
1 files changed, 77 insertions, 0 deletions
diff --git a/config/shared.nix b/config/shared.nix
new file mode 100644
index 0000000..b006572
--- /dev/null
+++ b/config/shared.nix
@@ -0,0 +1,77 @@
+{ inputs, pkgs, ... }:
+{
+ environment.systemPackages = with pkgs; [
+ kitty
+ waybar
+ rofi-wayland-unwrapped
+ rofi-rbw-wayland
+ helix
+ alacritty
+ firefox
+ git
+ ];
+
+ nixpkgs.config.allowUnfree = true;
+ nix.settings = {
+ experimental-features = [ "nix-command" "flakes" ];
+ substituters = ["https://hyprland.cachix.org"];
+ trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
+ };
+
+ programs.steam.enable = true;
+ programs.mtr.enable = true;
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ };
+ programs.hyprland = {
+ enable = true;
+ xwayland.enable = true;
+ package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
+ portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
+ };
+
+ services.openssh.enable = true;
+ services.pipewire = {
+ enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ pulse.enable = true;
+ };
+ services.keyd = {
+ enable = true;
+ keyboards = {
+ default = {
+ ids = [ "*" ];
+ settings.main.capslock = "overload(meta, esc)";
+ };
+ };
+ };
+ services.greetd = {
+ enable = true;
+ settings = {
+ default_session = {
+ command = "${pkgs.hyprland}/bin/hyprland";
+ user = "jras";
+ };
+ };
+ };
+ services.gnome.gnome-keyring.enable = true;
+
+ systemd.user.services.kanshi = {
+ description = "kanshi daemon";
+ environment = {
+ WAYLAND_DISPLAY="wayland-1";
+ DISPLAY=":0";
+ };
+ serviceConfig = {
+ Type = "simple";
+ ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file'';
+ };
+ };
+
+ virtualisation.docker = {
+ enable = true;
+ enableOnBoot = true;
+ };
+}