Compare commits

..

No commits in common. "037d12214d5175f181fb5012d864d0863f380458" and "6623e4fd471b9ce83ce836024023436241673e1a" have entirely different histories.

7 changed files with 31 additions and 38 deletions

8
flake.lock generated
View file

@ -452,16 +452,16 @@
"nixpkgs-regression": "nixpkgs-regression" "nixpkgs-regression": "nixpkgs-regression"
}, },
"locked": { "locked": {
"lastModified": 1742837300, "lastModified": 1740601978,
"narHash": "sha256-pidBRgonX1k7NJ1K8ML0rX1WWrAuYlGmQWz2xKXyEFY=", "narHash": "sha256-b70oopwDPaHiddorJIvI8H50yTXOd04noGZVp3YPHbM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nix", "repo": "nix",
"rev": "5a4e306cc5853922b292525ed23c59ba07f9d243", "rev": "31923aaac0358336442244ec6baf8f6517463afd",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "5a4e306cc5853922b292525ed23c59ba07f9d243", "ref": "31923aaac0358336442244ec6baf8f6517463afd",
"repo": "nix", "repo": "nix",
"type": "github" "type": "github"
} }

View file

@ -24,7 +24,7 @@
type = "github"; type = "github";
owner = "NixOS"; owner = "NixOS";
repo = "nix"; repo = "nix";
ref = "5a4e306cc5853922b292525ed23c59ba07f9d243"; ref = "31923aaac0358336442244ec6baf8f6517463afd";
inputs.nixpkgs.follows = "stable"; inputs.nixpkgs.follows = "stable";
}; };
#other #other

View file

@ -28,7 +28,7 @@
qbittorrent # steal stuff qbittorrent # steal stuff
pavucontrol # gui volume control pavucontrol # gui volume control
pcmanfm # file manager pcmanfm # file manager
mpv # play stuff vlc # play stuff
ripgrep ripgrep
fd fd
jq jq

View file

@ -15,29 +15,26 @@
}; };
packages = { packages = {
inherit (pkgs) inherit (pkgs)
mpv vlc
pavucontrol # gui volume control pavucontrol # gui volume control
librewolf chromium
; ;
inherit (nvim-flake.packages) neovim; inherit (nvim-flake.packages) neovim;
}; };
}; };
services = { services.xserver.videoDrivers = [ "modesetting" ];
xserver.videoDrivers = [ "modesetting" ];
displayManager.autoLogin = { networking.networkmanager.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
sops.secrets.root.neededForUsers = true;
services.displayManager.autoLogin = {
enable = true; enable = true;
user = "media"; user = "media";
}; };
openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
};
networking = {
networkmanager.enable = true;
hostName = "media-laptop";
};
sops.secrets.root.neededForUsers = true;
users = { users = {
mutableUsers = false; mutableUsers = false;
users = { users = {
@ -56,9 +53,8 @@
}; };
}; };
}; };
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest;
initrd.availableKernelModules = [ initrd.availableKernelModules = [
"xhci-pci" "xhci-pci"
"ehci-pci" "ehci-pci"
@ -70,19 +66,19 @@
]; ];
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" ];
}; };
systemd.user.tmpfiles.users.media.rules = [ 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 = [ swapDevices = [
{ {
device = "/swapfile"; device = "/swapfile";
size = 8 * 1024; size = 8 * 1024;
} }
]; ];
system.stateVersion = "24.11";
nixpkgs.hostPlatform = "x86_64-linux";
} }

View file

@ -8,14 +8,12 @@
config = lib.mkIf config.local.DE.xfce.enable { config = lib.mkIf config.local.DE.xfce.enable {
environment.systemPackages = [ pkgs.xfce.xfce4-whiskermenu-plugin ]; environment.systemPackages = [ pkgs.xfce.xfce4-whiskermenu-plugin ];
services = { services.xserver = {
xserver = {
enable = true; enable = true;
desktopManager.xfce = { desktopManager.xfce = {
enable = true; enable = true;
enableScreensaver = true; enableScreensaver = true;
}; };
};
displayManager.defaultSession = "xfce"; displayManager.defaultSession = "xfce";
}; };
}; };

View file

@ -10,7 +10,7 @@
keep-derivations = false; keep-derivations = false;
builders-use-substitutes = true; builders-use-substitutes = true;
max-jobs = 0; 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=" ]; trusted-public-keys = [ "cache.gerg-l.com:6p1+h6jQnb1MOt3ra3PlQpfgEEF4zRrQWiEuAqcjBj8=" ];
}; };
distributedBuilds = true; distributedBuilds = true;

View file

@ -31,9 +31,8 @@
# Other nix settings # Other nix settings
# #
settings = { settings = {
substituters = lib.mkForce [ substituters = [
"https://cache.nixos.org?priority=2" "https://nix-community.cachix.org"
"https://nix-community.cachix.org?priority=3"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="