feat: add a lot of stuff
This commit is contained in:
parent
350aebc01d
commit
5505eec77d
28 changed files with 224 additions and 97 deletions
|
|
@ -15,5 +15,4 @@
|
|||
nec = "sudo -E nvim -u $HOME/.config/nvim/init.lua --cmd 'cd /etc/nixos'";
|
||||
ncc = "sudo nixos-rebuild switch --upgrade-all --flake /etc/nixos";
|
||||
nup = "sudo nix-channel --update && sudo nixos-rebuild switch --upgrade-all --flake /etc/nixos";
|
||||
spt = "spotify_player";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,4 +6,3 @@
|
|||
|
||||
services.blueman.enable = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,11 +13,12 @@
|
|||
./opengl.nix
|
||||
./power.nix
|
||||
./packages.nix
|
||||
./print.nix
|
||||
./printing.nix
|
||||
./security.nix
|
||||
./shell.nix
|
||||
./udisks2.nix
|
||||
./unfree.nix
|
||||
./virtualisation.nix
|
||||
./xdg-portal.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
{ ... }: {
|
||||
/*
|
||||
{ config, ... }: {
|
||||
|
||||
# services.xserver.videoDrivers = [ "nouveau" ];
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.nvidia = {
|
||||
|
|
@ -10,6 +12,7 @@
|
|||
open = false;
|
||||
# Enable the nvidia settings menu
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
|
||||
};
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
pciutils
|
||||
qt5.qtwayland
|
||||
qt6.qtwayland
|
||||
xdg-utils # for opening default programs
|
||||
glib # gsettings
|
||||
|
|
@ -20,6 +21,6 @@
|
|||
javaPackages.openjfx17
|
||||
gradle_7
|
||||
python312
|
||||
nodejs_20
|
||||
nodenv
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
{ ... }: {
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
}
|
||||
11
modules/printing.nix
Normal file
11
modules/printing.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }: {
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -3,4 +3,9 @@
|
|||
|
||||
# rtkit is optional but recommended
|
||||
security.rtkit.enable = true;
|
||||
|
||||
# TODO workaround to get swaylock accepting pw
|
||||
# https://github.com/NixOS/nixpkgs/issues/158025
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
}
|
||||
|
|
|
|||
8
modules/virtualisation.nix
Normal file
8
modules/virtualisation.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ pkgs, ... }: {
|
||||
|
||||
# virt-manager
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
environment.systemPackages = with pkgs; [ virt-manager ];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue