mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
Compare commits
4 commits
6623e4fd47
...
037d12214d
| Author | SHA1 | Date | |
|---|---|---|---|
| 037d12214d | |||
| df81b3dc48 | |||
| f8d91c0555 | |||
| f44bbc9857 |
7 changed files with 38 additions and 31 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -452,16 +452,16 @@
|
||||||
"nixpkgs-regression": "nixpkgs-regression"
|
"nixpkgs-regression": "nixpkgs-regression"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740601978,
|
"lastModified": 1742837300,
|
||||||
"narHash": "sha256-b70oopwDPaHiddorJIvI8H50yTXOd04noGZVp3YPHbM=",
|
"narHash": "sha256-pidBRgonX1k7NJ1K8ML0rX1WWrAuYlGmQWz2xKXyEFY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "31923aaac0358336442244ec6baf8f6517463afd",
|
"rev": "5a4e306cc5853922b292525ed23c59ba07f9d243",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "31923aaac0358336442244ec6baf8f6517463afd",
|
"ref": "5a4e306cc5853922b292525ed23c59ba07f9d243",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "nix";
|
repo = "nix";
|
||||||
ref = "31923aaac0358336442244ec6baf8f6517463afd";
|
ref = "5a4e306cc5853922b292525ed23c59ba07f9d243";
|
||||||
inputs.nixpkgs.follows = "stable";
|
inputs.nixpkgs.follows = "stable";
|
||||||
};
|
};
|
||||||
#other
|
#other
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
qbittorrent # steal stuff
|
qbittorrent # steal stuff
|
||||||
pavucontrol # gui volume control
|
pavucontrol # gui volume control
|
||||||
pcmanfm # file manager
|
pcmanfm # file manager
|
||||||
vlc # play stuff
|
mpv # play stuff
|
||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
jq
|
jq
|
||||||
|
|
|
||||||
|
|
@ -15,26 +15,29 @@
|
||||||
};
|
};
|
||||||
packages = {
|
packages = {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
vlc
|
mpv
|
||||||
pavucontrol # gui volume control
|
pavucontrol # gui volume control
|
||||||
chromium
|
librewolf
|
||||||
;
|
;
|
||||||
inherit (nvim-flake.packages) neovim;
|
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;
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
hostName = "media-laptop";
|
||||||
|
};
|
||||||
|
|
||||||
sops.secrets.root.neededForUsers = true;
|
sops.secrets.root.neededForUsers = true;
|
||||||
|
|
||||||
services.displayManager.autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "media";
|
|
||||||
};
|
|
||||||
users = {
|
users = {
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
users = {
|
users = {
|
||||||
|
|
@ -53,8 +56,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
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"
|
||||||
|
|
@ -66,19 +70,19 @@
|
||||||
];
|
];
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.tmpfiles.users.media.rules = [
|
systemd.user.tmpfiles.users.media.rules = [
|
||||||
"L+ %h/Desktop/chromium-browser.desktop - - - - ${pkgs.chromium}/share/applications/chromium-browser.desktop"
|
"L+ %h/Desktop/librewolf.desktop - - - - ${pkgs.librewolf}/share/applications/librewolf.desktop"
|
||||||
"L+ %h/Desktop/vlc.desktop - - - - ${pkgs.vlc}/share/applications/vlc.desktop"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
# Reformat at some point
|
||||||
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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,13 @@
|
||||||
|
|
||||||
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.xserver = {
|
services = {
|
||||||
enable = true;
|
xserver = {
|
||||||
desktopManager.xfce = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
enableScreensaver = true;
|
desktopManager.xfce = {
|
||||||
|
enable = true;
|
||||||
|
enableScreensaver = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
displayManager.defaultSession = "xfce";
|
displayManager.defaultSession = "xfce";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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 = [ "https://cache.gerg-l.com" ];
|
substituters = lib.mkForce [ "https://cache.gerg-l.com?priority=1&compression=zstd" ];
|
||||||
trusted-public-keys = [ "cache.gerg-l.com:6p1+h6jQnb1MOt3ra3PlQpfgEEF4zRrQWiEuAqcjBj8=" ];
|
trusted-public-keys = [ "cache.gerg-l.com:6p1+h6jQnb1MOt3ra3PlQpfgEEF4zRrQWiEuAqcjBj8=" ];
|
||||||
};
|
};
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,9 @@
|
||||||
# Other nix settings
|
# Other nix settings
|
||||||
#
|
#
|
||||||
settings = {
|
settings = {
|
||||||
substituters = [
|
substituters = lib.mkForce [
|
||||||
"https://nix-community.cachix.org"
|
"https://cache.nixos.org?priority=2"
|
||||||
|
"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="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue