QLUEKPCGVQEAEYTHI6Z2LKEHAOG4RYGCDNQYYPUF4MEEKUEW3TEAC
CM2R5CCC4BV75P2MBA4X6OS2H6GQ5BAS34LSU6Y5X3SVKBAFT24AC
UVTMVPNNG3MP43ZDZPADNOZBPIVIU3XAQYAEH45ZULNUYW667KEQC
F26DJCZ7RLGRDZSYACB6MGMNTW7L5FE332EBYEIJTBRK7QJ6ZIYAC
BYZGRIFZY253OFK442SR6X743U4LAX4NLFBQ4XPKXEDPPXNNUM4AC
JOK7DA5XBOK2MIVR7ORTSAEMQ6U5642I537IGUYBX67DPFF5QJ3QC
H3GYCX27WTONFBIJN7UIV26LJSCENQJC4XXIOEYINXJLEDGKYJJQC
YVZDXEX34EVRGBLOY4LIDKPFZVMTINZQ5UCAJVDMYSBWIDFPNBQQC
TXA66OLAOYNGEDRBC4SKWDZPLBZXUU7WHDIAYN4TXGEJR6WIJOIQC
HYAPQQOH67GIKQFGP45GE2DFC3WCQTAJUXHQDDK6FZQUGMZ2CZQQC
QNEDMAXXZFJJNFS2QHPEJZC6OHQEDC4GJBN5GM6G5INR2ME3WSZQC
{
pkgs,
user,
...
}: {
nix = {
package = pkgs.nixVersions.stable;
settings.experimental-features = ["nix-command" "flakes"];
registry.nixpkgs.flake = nixpkgs;
};
time.timeZone = "Europe/Warsaw";
users.users.${user} = {
isNormalUser = true;
extraGroups = ["wheel"];
shell = pkgs.fish;
group = user;
};
users.groups.${user} = {};
programs.fish.enable = true;
programs.mosh.enable = true;
system.stateVersion = "22.05";
}
{
config,
lib,
pkgs,
...
}: {
imports = [
./common.nix
./sway.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
boot.initrd.checkJournalingFS = false;
boot.initrd.availableKernelModules = ["ata_piix" "ohci_pci" "ehci_pci" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/66f65e77-6f5f-42f8-b10f-bca2f40874dd";
fsType = "ext4";
};
fileSystems."/nikod" = {
device = "nikod";
fsType = "vboxsf";
options = ["rw" "nofail"];
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s3.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
virtualisation.virtualbox.guest.enable = true;
}
config = with lib; mkIf cfg.enable {
services.udev = {
enable = mkDefault true;
extraRules = ''
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
'';
};
config = with lib;
mkIf cfg.enable {
services.udev = {
enable = mkDefault true;
extraRules = ''
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
'';
};
systemd.user.services.sunshine = {
description = "Sunshine self-hosted game stream host for Moonlight.";
wantedBy = [cfg.systemdTarget];
serviceConfig = {
Type = "simple";
ExecStart = "${cfg.package}/bin/sunshine";
systemd.user.services.sunshine = {
description = "Sunshine self-hosted game stream host for Moonlight.";
wantedBy = [cfg.systemdTarget];
serviceConfig = {
Type = "simple";
ExecStart = "${cfg.package}/bin/sunshine";
};
modules = [
./configuration.nix
../../nixos/ssh.nix
self.nixosModules.sunshine
home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [
fenix.overlays.default
nur.overlay
# (import ../../nixos/wrappedForGpg.nix)
];
services.sunshine.enable = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${user} = self'.lib.mkHome {
imports = [
../../home-manager/desktop/xorg/i3.nix
../../home-manager/desktop/wayland/sway.nix
../../home-manager/desktop/qute.nix
../../home-manager/node.nix
../../home-manager/pijul.nix
../../home-manager/desktop/chromium.nix
({pkgs, ...}: {
home.packages = with pkgs; [virt-manager steam-run slack logseq ghidra-bin pwndbg];
})
];
niko = {
desktop.alacritty.enable = true;
dev.rust.enable = true;
};
};
}
];
user = {pkgs, ...}: {
imports = [
../../home-manager/desktop/xorg/i3.nix
../../home-manager/desktop/wayland/sway.nix
../../home-manager/desktop/qute.nix
../../home-manager/node.nix
../../home-manager/pijul.nix
../../home-manager/desktop/chromium.nix
];
home.packages = with pkgs; [virt-manager steam-run slack logseq ghidra-bin pwndbg];
niko = {
desktop.alacritty.enable = true;
dev.rust.enable = true;
};
};