Compare commits
	
		
			5 Commits
		
	
	
		
			93052529b8
			...
			bfa957adcd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bfa957adcd | |||
| 50d22afef8 | |||
| 29feb9223e | |||
| 7bc7749f51 | |||
| 51beed138e | 
							
								
								
									
										46
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										46
									
								
								flake.lock
									
									
									
										generated
									
									
									
								
							@@ -7,11 +7,11 @@
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1749744770,
 | 
			
		||||
        "narHash": "sha256-MEM9XXHgBF/Cyv1RES1t6gqAX7/tvayBC1r/KPyK1ls=",
 | 
			
		||||
        "lastModified": 1757432263,
 | 
			
		||||
        "narHash": "sha256-qHn+/0+IOz5cG68BZUwL9BV3EO/e9eNKCjH3+N7wMdI=",
 | 
			
		||||
        "owner": "lnl7",
 | 
			
		||||
        "repo": "nix-darwin",
 | 
			
		||||
        "rev": "536f951efb1ccda9b968e3c9dee39fbeb6d3fdeb",
 | 
			
		||||
        "rev": "1fef4404de4d1596aa5ab2bd68078370e1b9dcdb",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -64,11 +64,11 @@
 | 
			
		||||
        "zon2nix": "zon2nix"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1756131615,
 | 
			
		||||
        "narHash": "sha256-rmmsEZglqzgxIePTKe5wCIQ3syzAb4jE3RpNxD/2tzY=",
 | 
			
		||||
        "lastModified": 1759330332,
 | 
			
		||||
        "narHash": "sha256-ZKyOgOOm9Itjbc5xi89xMtw+cnnOFfl79zndPMTzKpU=",
 | 
			
		||||
        "owner": "ghostty-org",
 | 
			
		||||
        "repo": "ghostty",
 | 
			
		||||
        "rev": "8aa0b4c92a54f822043e134d2b84ee29844f944e",
 | 
			
		||||
        "rev": "a5aff0e347b0016e2735d4ec4b4cdca96b5438d1",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -84,11 +84,11 @@
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1755928099,
 | 
			
		||||
        "narHash": "sha256-OILVkfhRCm8u18IZ2DKR8gz8CVZM2ZcJmQBXmjFLIfk=",
 | 
			
		||||
        "lastModified": 1758463745,
 | 
			
		||||
        "narHash": "sha256-uhzsV0Q0I9j2y/rfweWeGif5AWe0MGrgZ/3TjpDYdGA=",
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "home-manager",
 | 
			
		||||
        "rev": "4a44fb9f7555da362af9d499817084f4288a957f",
 | 
			
		||||
        "rev": "3b955f5f0a942f9f60cdc9cacb7844335d0f21c3",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -129,24 +129,24 @@
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1755972213,
 | 
			
		||||
        "narHash": "sha256-VYK7aDAv8H1enXn1ECRHmGbeY6RqLnNwUJkOwloIsko=",
 | 
			
		||||
        "rev": "73e96df7cff5783f45e21342a75a1540c4eddce4",
 | 
			
		||||
        "lastModified": 1758360447,
 | 
			
		||||
        "narHash": "sha256-XDY3A83bclygHDtesRoaRTafUd80Q30D/Daf9KSG6bs=",
 | 
			
		||||
        "rev": "8eaee110344796db060382e15d3af0a9fc396e0e",
 | 
			
		||||
        "type": "tarball",
 | 
			
		||||
        "url": "https://releases.nixos.org/nixos/unstable-small/nixos-25.11pre850642.73e96df7cff5/nixexprs.tar.xz"
 | 
			
		||||
        "url": "https://releases.nixos.org/nixos/unstable/nixos-25.11pre864002.8eaee1103447/nixexprs.tar.xz"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "type": "tarball",
 | 
			
		||||
        "url": "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz"
 | 
			
		||||
        "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs_3": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1755922037,
 | 
			
		||||
        "narHash": "sha256-wY1+2JPH0ZZC4BQefoZw/k+3+DowFyfOxv17CN/idKs=",
 | 
			
		||||
        "lastModified": 1759281824,
 | 
			
		||||
        "narHash": "sha256-FIBE1qXv9TKvSNwst6FumyHwCRH3BlWDpfsnqRDCll0=",
 | 
			
		||||
        "owner": "nixos",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "b1b3291469652d5a2edb0becc4ef0246fff97a7c",
 | 
			
		||||
        "rev": "5b5be50345d4113d04ba58c444348849f5585b4a",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
@@ -211,24 +211,20 @@
 | 
			
		||||
    },
 | 
			
		||||
    "zon2nix": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-utils": [
 | 
			
		||||
          "ghostty",
 | 
			
		||||
          "flake-utils"
 | 
			
		||||
        ],
 | 
			
		||||
        "nixpkgs": "nixpkgs_2"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1756000480,
 | 
			
		||||
        "narHash": "sha256-fR5pdcjO0II5MNdCzqvyokyuFkmff7/FyBAjUS6sMfA=",
 | 
			
		||||
        "lastModified": 1758405547,
 | 
			
		||||
        "narHash": "sha256-WgaDgvIZMPvlZcZrpPMjkaalTBnGF2lTG+62znXctWM=",
 | 
			
		||||
        "owner": "jcollie",
 | 
			
		||||
        "repo": "zon2nix",
 | 
			
		||||
        "rev": "d9dc9ef1ab9ae45b5c9d80c6a747cc9968ee0c60",
 | 
			
		||||
        "rev": "bf983aa90ff169372b9fa8c02e57ea75e0b42245",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "jcollie",
 | 
			
		||||
        "repo": "zon2nix",
 | 
			
		||||
        "rev": "d9dc9ef1ab9ae45b5c9d80c6a747cc9968ee0c60",
 | 
			
		||||
        "rev": "bf983aa90ff169372b9fa8c02e57ea75e0b42245",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
    extraConfig = {
 | 
			
		||||
      init.defaultBranch = "master";
 | 
			
		||||
      push.autoSetupRemote = true;
 | 
			
		||||
      pull.merge = true;
 | 
			
		||||
      pull.rebase = false;
 | 
			
		||||
      merge.tool = "nvimdiff";
 | 
			
		||||
      mergetool.keepBackup = false;
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										19
									
								
								modules/apps/appimage.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								modules/apps/appimage.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
with lib; let
 | 
			
		||||
  cfg = config.appimage;
 | 
			
		||||
in {
 | 
			
		||||
  options.appimage = {
 | 
			
		||||
    enable = mkEnableOption "AppImage support";
 | 
			
		||||
  };
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    environment.systemPackages = with pkgs; [
 | 
			
		||||
      appimageupdate
 | 
			
		||||
      appimage-run
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
@@ -21,11 +21,13 @@ in {
 | 
			
		||||
      inherit lib pkgs flatpakPackages;
 | 
			
		||||
    })
 | 
			
		||||
    ../../apps/gaming.nix
 | 
			
		||||
    ../../apps/appimage.nix
 | 
			
		||||
    ../../graphics
 | 
			
		||||
    ../../pwrMgmt
 | 
			
		||||
    ../../networking/core.nix
 | 
			
		||||
    ../../sound/pipewire.nix
 | 
			
		||||
    ../../sound/shairport.nix
 | 
			
		||||
    ../../sound/focusrite.nix
 | 
			
		||||
    ../../virtualization/podman.nix
 | 
			
		||||
    ../../virtualization/hardware.nix
 | 
			
		||||
  ];
 | 
			
		||||
@@ -34,9 +36,13 @@ in {
 | 
			
		||||
  nix.settings.experimental-features = ["nix-command" "flakes"];
 | 
			
		||||
 | 
			
		||||
  # Custom kernel/boot stuff
 | 
			
		||||
  boot.kernelPackages = pkgs.linuxPackages_latest;
 | 
			
		||||
  boot.loader.systemd-boot.enable = true;
 | 
			
		||||
  boot.loader.efi.canTouchEfiVariables = true;
 | 
			
		||||
  boot = {
 | 
			
		||||
    kernelPackages = pkgs.linuxPackages_latest;
 | 
			
		||||
    loader = {
 | 
			
		||||
      systemd-boot.enable = true;
 | 
			
		||||
      efi.canTouchEfiVariables = true;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Enable Bluetooth if present
 | 
			
		||||
  hardware.bluetooth.enable = true;
 | 
			
		||||
@@ -63,21 +69,6 @@ in {
 | 
			
		||||
    wl-clip-persist
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Enable OpenSSH
 | 
			
		||||
  services.openssh.enable = true;
 | 
			
		||||
 | 
			
		||||
  # Enable keyring
 | 
			
		||||
  services.gnome.gnome-keyring.enable = true;
 | 
			
		||||
 | 
			
		||||
  # Enable GnuPG
 | 
			
		||||
  programs.gnupg.agent = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableSSHSupport = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Enable SUID wrappers (some programs need them)
 | 
			
		||||
  programs.mtr.enable = true;
 | 
			
		||||
 | 
			
		||||
  # Enable Polkit
 | 
			
		||||
  security.polkit.enable = true;
 | 
			
		||||
 | 
			
		||||
@@ -145,14 +136,39 @@ in {
 | 
			
		||||
    networkManager.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
    # Enable GnuPG
 | 
			
		||||
    gnupg.agent = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      enableSSHSupport = true;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    # Enable SUID wrappers (some programs need them)
 | 
			
		||||
    mtr.enable = true;
 | 
			
		||||
 | 
			
		||||
    # Enable dconf
 | 
			
		||||
  programs.dconf.enable = true;
 | 
			
		||||
    dconf.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Add username to groups "wheel" and "video" - more may be added here later
 | 
			
		||||
  users.users.${userName}.extraGroups = ["wheel" "video" "gamemode" "podman" "network"];
 | 
			
		||||
 | 
			
		||||
  services = {
 | 
			
		||||
    # Enable OpenSSH
 | 
			
		||||
    openssh.enable = true;
 | 
			
		||||
 | 
			
		||||
    # Enable keyring
 | 
			
		||||
    gnome.gnome-keyring.enable = true;
 | 
			
		||||
 | 
			
		||||
    # Flatpak packages (see ../../apps/flatpak.nix)
 | 
			
		||||
  services.flatpak.packages = flatpakPackages;
 | 
			
		||||
    flatpak.packages = flatpakPackages;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Focusrite Scarlett audio interface support (see ../../sound/focusrite.nix)
 | 
			
		||||
  sound.hardware.focusrite.enable = true;
 | 
			
		||||
 | 
			
		||||
  # AppImage support
 | 
			
		||||
  appimage.enable = true;
 | 
			
		||||
 | 
			
		||||
  # XDG stuff
 | 
			
		||||
  xdg = {
 | 
			
		||||
@@ -160,12 +176,12 @@ in {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      config = {
 | 
			
		||||
        sway = {
 | 
			
		||||
          default = [ "wlr" "gtk" ];
 | 
			
		||||
          "org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
 | 
			
		||||
          default = ["wlr" "gtk"];
 | 
			
		||||
          "org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
 | 
			
		||||
        };
 | 
			
		||||
        common = {
 | 
			
		||||
          default = [ "gtk" ];
 | 
			
		||||
          "org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
 | 
			
		||||
          default = ["gtk"];
 | 
			
		||||
          "org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
      extraPortals = with pkgs; [
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										33
									
								
								modules/sound/focusrite.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								modules/sound/focusrite.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
# Must be paired with the pipewire Nix module, this does nothing but install packages
 | 
			
		||||
{
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
with lib; let
 | 
			
		||||
  cfg = config.sound.hardware.focusrite;
 | 
			
		||||
in {
 | 
			
		||||
  options.sound.hardware.focusrite = {
 | 
			
		||||
    enable = mkEnableOption "Focusrite audio interface support";
 | 
			
		||||
    guiSupport = mkOption {
 | 
			
		||||
      type = types.bool;
 | 
			
		||||
      default = false;
 | 
			
		||||
      description = "Enable GUI support for Focusrite Scarlett audio interface (installs alsa-scarlett-gui)";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  config = mkIf cfg.enable (mkMerge [
 | 
			
		||||
    {
 | 
			
		||||
      environment.systemPackages = with pkgs;
 | 
			
		||||
        [
 | 
			
		||||
          scarlett2
 | 
			
		||||
          alsa-scarlett-gui
 | 
			
		||||
        ]
 | 
			
		||||
        ++ (
 | 
			
		||||
          if cfg.guiSupport
 | 
			
		||||
          then [pkgs.alsa-scarlett-gui]
 | 
			
		||||
          else []
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
  ]);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user