diff --git a/flake.lock b/flake.lock index 5ec518a..051ccc7 100644 --- a/flake.lock +++ b/flake.lock @@ -452,16 +452,16 @@ "nixpkgs-regression": "nixpkgs-regression" }, "locked": { - "lastModified": 1742837300, - "narHash": "sha256-pidBRgonX1k7NJ1K8ML0rX1WWrAuYlGmQWz2xKXyEFY=", + "lastModified": 1740601978, + "narHash": "sha256-b70oopwDPaHiddorJIvI8H50yTXOd04noGZVp3YPHbM=", "owner": "NixOS", "repo": "nix", - "rev": "5a4e306cc5853922b292525ed23c59ba07f9d243", + "rev": "31923aaac0358336442244ec6baf8f6517463afd", "type": "github" }, "original": { "owner": "NixOS", - "ref": "5a4e306cc5853922b292525ed23c59ba07f9d243", + "ref": "31923aaac0358336442244ec6baf8f6517463afd", "repo": "nix", "type": "github" } diff --git a/flake.nix b/flake.nix index 7e3410e..444672d 100644 --- a/flake.nix +++ b/flake.nix @@ -24,7 +24,7 @@ type = "github"; owner = "NixOS"; repo = "nix"; - ref = "5a4e306cc5853922b292525ed23c59ba07f9d243"; + ref = "31923aaac0358336442244ec6baf8f6517463afd"; inputs.nixpkgs.follows = "stable"; }; #other diff --git a/nixosConfigurations/gerg-desktop/main.nix b/nixosConfigurations/gerg-desktop/main.nix index 2e823f6..6221e67 100644 --- a/nixosConfigurations/gerg-desktop/main.nix +++ b/nixosConfigurations/gerg-desktop/main.nix @@ -28,7 +28,7 @@ qbittorrent # steal stuff pavucontrol # gui volume control pcmanfm # file manager - mpv # play stuff + vlc # play stuff ripgrep fd jq diff --git a/nixosConfigurations/media-laptop/main.nix b/nixosConfigurations/media-laptop/main.nix index 485c4a6..0e0c909 100644 --- a/nixosConfigurations/media-laptop/main.nix +++ b/nixosConfigurations/media-laptop/main.nix @@ -15,29 +15,26 @@ }; packages = { inherit (pkgs) - mpv + vlc pavucontrol # gui volume control - librewolf + chromium ; inherit (nvim-flake.packages) neovim; }; }; - services = { - xserver.videoDrivers = [ "modesetting" ]; - displayManager.autoLogin = { - enable = true; - user = "media"; - }; - openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password"; - }; + services.xserver.videoDrivers = [ "modesetting" ]; - networking = { - networkmanager.enable = true; - hostName = "media-laptop"; - }; + networking.networkmanager.enable = true; + + boot.kernelPackages = pkgs.linuxPackages_latest; sops.secrets.root.neededForUsers = true; + + services.displayManager.autoLogin = { + enable = true; + user = "media"; + }; users = { mutableUsers = false; users = { @@ -56,9 +53,8 @@ }; }; }; - + services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password"; boot = { - kernelPackages = pkgs.linuxPackages_latest; initrd.availableKernelModules = [ "xhci-pci" "ehci-pci" @@ -70,19 +66,19 @@ ]; kernelModules = [ "kvm-intel" ]; }; - systemd.user.tmpfiles.users.media.rules = [ - "L+ %h/Desktop/librewolf.desktop - - - - ${pkgs.librewolf}/share/applications/librewolf.desktop" + "L+ %h/Desktop/chromium-browser.desktop - - - - ${pkgs.chromium}/share/applications/chromium-browser.desktop" + "L+ %h/Desktop/vlc.desktop - - - - ${pkgs.vlc}/share/applications/vlc.desktop" ]; - # Reformat at some point + system.stateVersion = "24.11"; + networking.hostName = "media-laptop"; + nixpkgs.hostPlatform = "x86_64-linux"; + swapDevices = [ { device = "/swapfile"; size = 8 * 1024; } ]; - - system.stateVersion = "24.11"; - nixpkgs.hostPlatform = "x86_64-linux"; } diff --git a/nixosModules/DE/xfce.nix b/nixosModules/DE/xfce.nix index 57fafbf..fb941c8 100644 --- a/nixosModules/DE/xfce.nix +++ b/nixosModules/DE/xfce.nix @@ -8,13 +8,11 @@ config = lib.mkIf config.local.DE.xfce.enable { environment.systemPackages = [ pkgs.xfce.xfce4-whiskermenu-plugin ]; - services = { - xserver = { + services.xserver = { + enable = true; + desktopManager.xfce = { enable = true; - desktopManager.xfce = { - enable = true; - enableScreensaver = true; - }; + enableScreensaver = true; }; displayManager.defaultSession = "xfce"; }; diff --git a/nixosModules/builders.nix b/nixosModules/builders.nix index 6e532bc..f28ace1 100644 --- a/nixosModules/builders.nix +++ b/nixosModules/builders.nix @@ -10,7 +10,7 @@ keep-derivations = false; builders-use-substitutes = true; max-jobs = 0; - substituters = lib.mkForce [ "https://cache.gerg-l.com?priority=1&compression=zstd" ]; + substituters = [ "https://cache.gerg-l.com" ]; trusted-public-keys = [ "cache.gerg-l.com:6p1+h6jQnb1MOt3ra3PlQpfgEEF4zRrQWiEuAqcjBj8=" ]; }; distributedBuilds = true; diff --git a/nixosModules/nix.nix b/nixosModules/nix.nix index 7db00c4..a7c3e6e 100644 --- a/nixosModules/nix.nix +++ b/nixosModules/nix.nix @@ -31,9 +31,8 @@ # Other nix settings # settings = { - substituters = lib.mkForce [ - "https://cache.nixos.org?priority=2" - "https://nix-community.cachix.org?priority=3" + substituters = [ + "https://nix-community.cachix.org" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="