RPGBGVR75LTVQ7OV2WIJV5PTTF5D7QDJSJI2MPEY4HPHCWWIY3WQC Z7BQUZ2VVUNF5ME5QWKITLDG343SX3DQAQDTPQ36T4LIY6UAFVWQC 532JIID6XB4NFSIFUA64VEBKWSEJB4AY5OUBIEFUDMWXO7UAZW2QC BYZGRIFZY253OFK442SR6X743U4LAX4NLFBQ4XPKXEDPPXNNUM4AC EVVP46IQ4U6JEDWVJ4D6KT77ABOMY7XKIO2ITX4DHJDRTGTYCUTQC TXA66OLAOYNGEDRBC4SKWDZPLBZXUU7WHDIAYN4TXGEJR6WIJOIQC JOK7DA5XBOK2MIVR7ORTSAEMQ6U5642I537IGUYBX67DPFF5QJ3QC FH5X6FMOHRX5CZVY6P6X6BVQH5Q5C3XV6DGWR4QJZORAMFEXQHUQC YVZDXEX34EVRGBLOY4LIDKPFZVMTINZQ5UCAJVDMYSBWIDFPNBQQC CM2R5CCC4BV75P2MBA4X6OS2H6GQ5BAS34LSU6Y5X3SVKBAFT24AC UROZYEF5IHRVZWES7YBLWZXLOPIRJJYUDV3Y25JMCM4FLHCJPBHQC QNEDMAXXZFJJNFS2QHPEJZC6OHQEDC4GJBN5GM6G5INR2ME3WSZQC ZGEGHEOD2S77CSNWOOFVB7Q3RGOU3WOWDOXJ4S2LKAS2JMS3UAZAC # Do not modify this file! It was generated by ‘nixos-generate-config’# and may be overwritten by future invocations. Please make changes# to /etc/nixos/configuration.nix instead.{ config, lib, pkgs, modulesPath, ... }:{imports =[ (modulesPath + "/installer/scan/not-detected.nix")];boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];boot.initrd.kernelModules = [ ];boot.kernelModules = [ "kvm-intel" ];boot.extraModulePackages = [ ];fileSystems."/" ={ device = "/dev/disk/by-label/nixos";fsType = "btrfs";options = [ "subvol=root" "compress=zstd" "noatime" ];};fileSystems."/home" ={ device = "/dev/disk/by-label/nixos";fsType = "btrfs";options = [ "subvol=home" "compress=zstd" "noatime" ];};fileSystems."/nix" ={ device = "/dev/disk/by-label/nixos";fsType = "btrfs";options = [ "subvol=nix" "compress=zstd" "noatime" ];};fileSystems."/persist" ={ device = "/dev/disk/by-label/nixos";fsType = "btrfs";options = [ "subvol=persist" "compress=zstd" "noatime" ];};fileSystems."/var/log" ={ device = "/dev/disk/by-label/nixos";fsType = "btrfs";options = [ "subvol=log" "compress=zstd" "noatime" ];neededForBoot = true;};fileSystems."/boot" ={ device = "/dev/disk/by-label/boot";fsType = "vfat";};swapDevices =[ { device = "/dev/disk/by-label/swap"; }];# 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.enp2s0.useDHCP = lib.mkDefault true;nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;# high-resolution displayhardware.video.hidpi.enable = lib.mkDefault true;}
{withSystem,inputs,self,...}: {flake.nixosConfigurations.miyagi = withSystem "x86_64-linux" ({system,self',...}: letinherit (inputs) fenix nur nixpkgs home-manager hyprland;user = self'.lib.const.user;inself'.lib.mkSystem {system = {imports = [./configuration.nix../../nixos/ssh.nixhyprland.nixosModules.default];programs.hyprland = {enable = true;xwayland = {enable = true;hidpi = true;};};};user = {pkgs, lib, osConfig, ...}: {imports = [hyprland.homeManagerModules.default# ../../home-manager/desktop/xorg/i3.nix# ../../home-manager/desktop/wayland/sway.nix../../home-manager/desktop/common.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] ++ [wofi wl-clipboard grim chromium];niko = {desktop.alacritty = {enable = true;fontSize = 14;};dev.rust.enable = true;};# TODO: Hyprland modulewayland.windowManager.hyprland = {enable = true;extraConfig = ''$mod = SUPERinput {kb_layout plfollow_mouse = 1accel_profile = flatkb_options = ${osConfig.services.xserver.xkbOptions}}general {gaps_in = 5gaps_out = 5border_size = 2}decoration {rounding = 8}bind = $mod, Return, exec, alacrittybind = $mod SHIFT, E, exec, pkill Hyprlandbind = $mod, Q, killactive,bind = $mod, F, fullscreen,bind = $mod SHIFT, T, togglefloating,bind = $mod, left, movefocus, lbind = $mod, right, movefocus, rbind = $mod, up, movefocus, ubind = $mod, down, movefocus, dbind = $mod, H, movefocus, lbind = $mod, L, movefocus, rbind = $mod, K, movefocus, ubind = $mod, J, movefocus, dbind = $mod, D, exec, wofi -S drunbind = SUPER, 1, workspace, 1bind = SUPER, 2, workspace, 2bind = SUPER, 3, workspace, 3bind = SUPER, 4, workspace, 4bind = SUPER, 5, workspace, 5bind = SUPER, 6, workspace, 6bind = SUPER, 7, workspace, 7bind = SUPER, 8, workspace, 8bind = SUPER, 9, workspace, 9bind = SUPER, 0, workspace, 10bind = SUPER SHIFT, 1, movetoworkspace, 1bind = SUPER SHIFT, 2, movetoworkspace, 2bind = SUPER SHIFT, 3, movetoworkspace, 3bind = SUPER SHIFT, 4, movetoworkspace, 4bind = SUPER SHIFT, 5, movetoworkspace, 5bind = SUPER SHIFT, 6, movetoworkspace, 6bind = SUPER SHIFT, 7, movetoworkspace, 7bind = SUPER SHIFT, 8, movetoworkspace, 8bind = SUPER SHIFT, 9, movetoworkspace, 9bind = SUPER SHIFT, 0, movetoworkspace, 10'';};programs.gpg.enable = lib.mkForce false;services.gpg-agent.enable = lib.mkForce false;};});}
{ config, pkgs, lib, user, ... }:{imports =[ # Include the results of the hardware scan../hardware-configuration.nix];nixpkgs.config = {allowUnfree = true;chromium.enableWideVine = true;};# Use the systemd-boot EFI boot loader.boot.loader.systemd-boot.enable = true;boot.loader.efi.canTouchEfiVariables = true;# networking.hostName = "nixos"; # Define your hostname.# Pick only one of the below networking options.# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.# Set your time zone.time.timeZone = "Europe/Warsaw";# Select internationalisation properties.i18n.defaultLocale = "en_US.UTF-8";console = {font = "Lat2-Terminus16";keyMap = "pl";};# Enable the X11 windowing system.# services.xserver.enable = false;virtualisation.podman = {enable = true;dockerCompat = true;};users.users.${user}.extraGroups = ["libvirtd" "i2c" "networkmanager"];# Configure keymap in X11services.xserver.layout = "pl";services.xserver.xkbOptions = lib.concatStringsSep "," ["eurosign:e""caps:escape" # map caps to escape.];# Enable CUPS to print documents.# services.printing.enable = true;# Enable sound.# sound.enable = true;# hardware.pulseaudio.enable = true;# Enable touchpad support (enabled default in most desktopManager).# services.xserver.libinput.enable = true;# Define a user account. Don't forget to set a password with ‘passwd’.# users.users.alice = {# isNormalUser = true;# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.# packages = with pkgs; [# firefox# thunderbird# ];# };# List packages installed in system profile. To search, run:# $ nix search wget# environment.systemPackages = with pkgs; [# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.# wget# ];# Some programs need SUID wrappers, can be configured further or are# started in user sessions.# programs.mtr.enable = true;# programs.gnupg.agent = {# enable = true;# enableSSHSupport = true;# };# List services that you want to enable:# Enable the OpenSSH daemon.# services.openssh.enable = true;networking.hostName = "miyagi";networking.networkmanager.enable = true;networking.useDHCP = lib.mkDefault true;# Open ports in the firewall.# networking.firewall.allowedTCPPorts = [ ... ];# networking.firewall.allowedUDPPorts = [ ... ];# Or disable the firewall altogether.# networking.firewall.enable = false;}
"type": "github"}},"hyprland": {"inputs": {"hyprland-protocols": "hyprland-protocols","nixpkgs": "nixpkgs","wlroots": "wlroots","xdph": "xdph"},"locked": {"lastModified": 1675637593,"narHash": "sha256-K40Dr48O+uHEQjreA6gWm3hqNHvfmVhZDjhIrHfavA8=","owner": "hyprwm","repo": "Hyprland","rev": "4a5c3c4861fb503c7ecb6dcfc86aeb547aa3fb7f","type": "github"},"original": {"owner": "hyprwm","repo": "Hyprland","type": "github"}},"hyprland-protocols": {"inputs": {"nixpkgs": ["hyprland","nixpkgs"]},"locked": {"lastModified": 1671839510,"narHash": "sha256-+PY1qqJfmZzzROgcIY4I7AkCwpnC+qBIYk2eFoA9RWc=","owner": "hyprwm","repo": "hyprland-protocols","rev": "b8f55e02a328c47ed373133c52483bbfa20a1b75",
"lastModified": 1673606088,"narHash": "sha256-wdYD41UwNwPhTdMaG0AIe7fE1bAdyHe6bB4HLUqUvck=","owner": "nixos",
"lastModified": 1675273418,"narHash": "sha256-tpYc4TEGvDzh9uRf44QemyQ4TpVuUbxb07b2P99XDbM=","owner": "NixOS",
"type": "github"}},"wlroots": {"flake": false,"locked": {"host": "gitlab.freedesktop.org","lastModified": 1675374853,"narHash": "sha256-BSrjNcddYWhFUMtjGwxiEXw67MYRaIHGvLn19Mvm1NE=","owner": "wlroots","repo": "wlroots","rev": "677a3f2f8847ed2de49dd60868f9d9487a546f58","type": "gitlab"},"original": {"host": "gitlab.freedesktop.org","owner": "wlroots","repo": "wlroots","type": "gitlab"}},"xdph": {"inputs": {"hyprland-protocols": ["hyprland","hyprland-protocols"],"nixpkgs": ["hyprland","nixpkgs"]},"locked": {"lastModified": 1673116118,"narHash": "sha256-eR0yDSkR2XYMesfdRWJs25kAdXET2mbNNHu5t+KUcKA=","owner": "hyprwm","repo": "xdg-desktop-portal-hyprland","rev": "d479c846531fd0e1d2357c9588b8310a2b859ef2",