Made a common machine configuration where all of my machines are configured.
This commit is contained in:
parent
6088214224
commit
30dce3155c
4 changed files with 109 additions and 169 deletions
|
|
@ -11,7 +11,7 @@
|
|||
./hardware-configuration.nix
|
||||
./refind.nix
|
||||
../../pkgs/firefox.nix
|
||||
../../pkgs/zsh.nix
|
||||
../common/configuration.nix
|
||||
];
|
||||
|
||||
# NVIDIA Drivers
|
||||
|
|
@ -39,79 +39,30 @@
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||
|
||||
nix.nixPath = ["/etc/nix/path"];
|
||||
environment.etc =
|
||||
lib.mapAttrs'
|
||||
(name: value: {
|
||||
name = "nix/path/${name}";
|
||||
value.source = value.flake;
|
||||
})
|
||||
config.nix.registry;
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
networking.hostName = "terra";
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.displayManager.sddm.enable = true;
|
||||
services.xserver.displayManager.sddm.autoNumlock = true;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
||||
services.tailscale.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
environment.shells = with pkgs; [ zsh ];
|
||||
|
||||
services.mullvad-vpn.enable = true;
|
||||
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||
networking.nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
dnssec = "true";
|
||||
domains = [ "~." ];
|
||||
fallbackDns = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
||||
};
|
||||
|
||||
users.users = {
|
||||
horseman = {
|
||||
initialPassword = "1234";
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
services.jack = {
|
||||
jackd.enable = true;
|
||||
# support ALSA only programs via ALSA JACK PCM plugin
|
||||
alsa.enable = false;
|
||||
# support ALSA only programs via loopback device (supports programs like Steam)
|
||||
loopback = {
|
||||
enable = true;
|
||||
# buffering parameters for dmix device to work with ALSA only semi-professional sound programs
|
||||
#dmixConfig = ''
|
||||
# period_size 2048
|
||||
#'';
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
system.stateVersion = "23.11";
|
||||
users.extraUsers.horseman.extraGroups = [ "jackaudio" ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue