mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-09 16:33:57 -05:00
chore: clean up media-laptop
feat: use priority for substituters feat: switch to mpv
This commit is contained in:
parent
f44bbc9857
commit
f8d91c0555
4 changed files with 25 additions and 21 deletions
|
|
@ -28,7 +28,7 @@
|
|||
qbittorrent # steal stuff
|
||||
pavucontrol # gui volume control
|
||||
pcmanfm # file manager
|
||||
vlc # play stuff
|
||||
mpv # play stuff
|
||||
ripgrep
|
||||
fd
|
||||
jq
|
||||
|
|
|
|||
|
|
@ -15,26 +15,29 @@
|
|||
};
|
||||
packages = {
|
||||
inherit (pkgs)
|
||||
vlc
|
||||
mpv
|
||||
pavucontrol # gui volume control
|
||||
chromium
|
||||
librewolf
|
||||
;
|
||||
inherit (nvim-flake.packages) neovim;
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "modesetting" ];
|
||||
services = {
|
||||
xserver.videoDrivers = [ "modesetting" ];
|
||||
displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = "media";
|
||||
};
|
||||
openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
||||
};
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
hostName = "media-laptop";
|
||||
};
|
||||
|
||||
sops.secrets.root.neededForUsers = true;
|
||||
|
||||
services.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = "media";
|
||||
};
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users = {
|
||||
|
|
@ -53,8 +56,9 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
initrd.availableKernelModules = [
|
||||
"xhci-pci"
|
||||
"ehci-pci"
|
||||
|
|
@ -66,19 +70,19 @@
|
|||
];
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
};
|
||||
|
||||
systemd.user.tmpfiles.users.media.rules = [
|
||||
"L+ %h/Desktop/chromium-browser.desktop - - - - ${pkgs.chromium}/share/applications/chromium-browser.desktop"
|
||||
"L+ %h/Desktop/vlc.desktop - - - - ${pkgs.vlc}/share/applications/vlc.desktop"
|
||||
"L+ %h/Desktop/librewolf.desktop - - - - ${pkgs.librewolf}/share/applications/librewolf.desktop"
|
||||
];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
networking.hostName = "media-laptop";
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
# Reformat at some point
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 8 * 1024;
|
||||
}
|
||||
];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
keep-derivations = false;
|
||||
builders-use-substitutes = true;
|
||||
max-jobs = 0;
|
||||
substituters = [ "https://cache.gerg-l.com" ];
|
||||
substituters = [ "https://cache.gerg-l.com?priority=-1&compression=zstd" ];
|
||||
trusted-public-keys = [ "cache.gerg-l.com:6p1+h6jQnb1MOt3ra3PlQpfgEEF4zRrQWiEuAqcjBj8=" ];
|
||||
};
|
||||
distributedBuilds = true;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://nix-community.cachix.org?priority=10"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue