mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
78b1f34d5e
Signed-off-by: main <magic_rb@redalder.org>
122 lines
2.8 KiB
Nix
122 lines
2.8 KiB
Nix
inputs: {
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
../nixos-modules/default.nix
|
|
inputs.home-manager.nixosModules.home-manager
|
|
({ pkgs, lib, config, secret, ... }: {
|
|
home-manager.users."main" =
|
|
{ ... }: {
|
|
imports = [ ../home-manager/modules/default.nix ];
|
|
|
|
magic_rb = {
|
|
optimisation.march = "skylake";
|
|
pins = inputs;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
overlays = inputs.self.overlays;
|
|
|
|
programs = {
|
|
alacritty.enable = true;
|
|
bash = {
|
|
enable = true;
|
|
enableDirenv = true;
|
|
};
|
|
ssh.enable = true;
|
|
emacs.enable = true;
|
|
xmonad.enable = true;
|
|
gpg.enable = true;
|
|
multimc.enable = false;
|
|
};
|
|
packageCollections = {
|
|
"3dPrinting".enable = true;
|
|
cmdline.enable = true;
|
|
graphical.enable = true;
|
|
webdev.enable = false;
|
|
wine.enable = false;
|
|
};
|
|
};
|
|
|
|
services.syncthing.enable = true;
|
|
|
|
home.stateVersion = "20.09";
|
|
};
|
|
|
|
specialisation.nvidia-sync =
|
|
{ configuration =
|
|
{ magic_rb.xserver.nvidia =
|
|
{ primeSync = true;
|
|
primeOffload = lib.mkForce false;
|
|
};
|
|
};
|
|
inheritParentConfig = true;
|
|
};
|
|
|
|
magic_rb = {
|
|
optimisation.march = "skylake";
|
|
|
|
grub = {
|
|
enable = true;
|
|
efi.enable = true;
|
|
};
|
|
|
|
xserver = {
|
|
enable = true;
|
|
gpu = "nvidia";
|
|
xmonad = true;
|
|
|
|
nvidia = {
|
|
primeOffload = true;
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
|
|
qwertyNeo2 = true;
|
|
mimickInTty = true;
|
|
};
|
|
|
|
pins = inputs;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
overlays = inputs.self.overlays;
|
|
|
|
hardware.omen = true;
|
|
flakes.enable = true;
|
|
pulseaudio.enable = true;
|
|
sshdEmacs.enable = true;
|
|
networking = {
|
|
bluetooth = true;
|
|
networkManager = true;
|
|
};
|
|
};
|
|
|
|
programs.steam.enable = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
};
|
|
|
|
networking = {
|
|
hostName = "omen";
|
|
useDHCP = false;
|
|
interfaces.eno1.useDHCP = true;
|
|
hostId = "10c7ffc5";
|
|
|
|
wireguard.interfaces."wg0" = {
|
|
|
|
} // config.magic_rb.secret.wireguard."omen";
|
|
};
|
|
|
|
security.pki.certificates = [ (builtins.readFile ../redalder.org.crt) ];
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
system.stateVersion = "20.09";
|
|
})
|
|
];
|
|
}
|