From 654b03566e5f1673f7a34e86ae3c83031230aed3 Mon Sep 17 00:00:00 2001 From: aleixrm Date: Fri, 23 May 2025 20:05:14 +0200 Subject: [PATCH] Adds roshar nixos config Signed-off-by: aleixrm --- nixos/hosts/roshar/.configuration.nix.swp | Bin 0 -> 20480 bytes nixos/hosts/roshar/configuration.nix | 182 ++++++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 nixos/hosts/roshar/.configuration.nix.swp create mode 100644 nixos/hosts/roshar/configuration.nix diff --git a/nixos/hosts/roshar/.configuration.nix.swp b/nixos/hosts/roshar/.configuration.nix.swp new file mode 100644 index 0000000000000000000000000000000000000000..0e5be7abacad0d5e46873c4dfd6aca1e686fbd08 GIT binary patch literal 20480 zcmeI4du%0D8Nf$C-~uXYjG{;mx2Ox-JMD#KDP0k|ZE*{`-Lh>r;0BlJopbLU@7$To zJbK%%3y6pPD*-*?V3)4y|Un>y1h8~lznjK=r->$^5=FpgSp7zyfm{Q*1`a+AM6E-O%PICDS<#Qmu5Vj$ zJuG|vTy{NXMfjoFGj4)C3qsbF)hyCC{9VVa`*28}&%pc(Qa6jAx0gOWlj)lJ$4CB{u z7wm&;;TpIUcET{2a5AieW8w894dWH~C)@$I!+y9FcEAvv2FJmxN02}K3Lb?=;0CBe z4bFoy^uwPHH;jkjdvHBm3}?e2oC)jT)wdhQKj2At8193c;X1eqz6=+^5cI?Ga5%h- z1Lj3|6z+!W;Ik0IXP^QX!49|pw!(V&D0~EthUak7JPY4~uYe6N;rMwT9*5t+&*6t~ zFMJ1Xfg9l}xD0&IunR7L5m545u%bHWISjd1ZNKWIcfsOa(`xwXyZU@9Xjv^Cq>oi6 z&{cmfeP~1*gSr z52Z?@az`jHMttS@k*fLu0V?v9W!uW~l(wD759Ed1sa0oHPE=EMt;Q`c6+qMpmF0%M za=b9ITvyv_W?tF4YQ=73lDYO~oxt~++KbF^K8$p8!m2c^nhw=js_jH|)oRqjO=?$C z(32DgVpOQDpi*Bd^j0T~RI3whDJREMX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z$isb_u@WWDFyDgRw zC!3^^^vbj~Or^FEl9&*)mg6SNw=De?3UKDuoqn=p#|ovUNoG{clcI0<^-U-$$bg&W}pn1x|D7GA(N@FTbuu7UHwfV=Sr z)Zj$;EoHqCZU8CwKFEK$267GL8pt(}YarJ^u7O+w2d@V9it&-Hj@R%tv$P*^Y*|OM zthelBH7-U54)(K&+@scMvt}l1OxO^?)t`Cz)0ZsqGle8cA=_m_D7dX?)mbZSqCQ$f73xT{G_LT9?l9wsSG zi7k>U#@4t~n&cfORZUGLvF#;NHSn95B@X)=qKC}=AkE%o*o(!Ux=K^SxNIhWc#6+7 zlfTp+Ugi{$y`(no^d;+d(P7@Bwg=*gPYf){wIhrBJ@VNBs$)2vrh9D5S?I(GhC z;-_*a#EB{{2&d-JI}^XmqStX{q!GW;pxNJ~w8({VNC9n<&H6~T#UYM}Fsv^rxZ`N( z_;8XImC8*{ZlRlKb~(&6jbsO_Q$)lV1u}r!;!Ty!w#4O?>{j)p&Q^BnvbUr)nK^`( zTpLTlUH*<9aYUv29W^g*)l5v~#9J$_>aM_Mg!^RWW=W59{~$tBG)b~m5Q<4pr%!vv zqC;ycoSYsTQEgnsjJU8@;Y$!3yEEw^P>loWS~Bb4(H2c~5-`)v&XvVLB6Bs* zA>cCFR!X3j)f+vFsmk_}#6l@JGM1b;9!*h_9hwqOQyNjKmDv9a9MZpmy793fd!a>?QkB9!Rz=mUW4c0A-E0Xe83l> z0q4Uh&;uvHhv5bG`yYV&;p^~uxDrl>Xg`__myi16KyyP;#^Ai>Mi3;fk zGKDXG5#%O6QIVgh$WK%-DmqI^Ge1$$%1=}z|34|69k`M8dw!xqAL!^vexgE-pW((y zjnXb-9}6l!QQ_6h{6xjUexgDLefW&@oH-|6%$`tJN|`&clpaRlfL`qCla=vbeKnQ< literal 0 HcmV?d00001 diff --git a/nixos/hosts/roshar/configuration.nix b/nixos/hosts/roshar/configuration.nix new file mode 100644 index 0000000..dc59177 --- /dev/null +++ b/nixos/hosts/roshar/configuration.nix @@ -0,0 +1,182 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + /etc/nixos/hardware-configuration.nix + # Include home manager (https://nix-community.github.io/home-manager/index.xhtml#sec-install-nixos-module) + + ]; + + # Bootloader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.kernelParams = ["button.lid_init_state=open"]; + + boot.initrd.luks.devices."luks-8ff88d18-5d65-4ddd-bd6f-7ba1cdead1ec".device = "/dev/disk/by-uuid/8ff88d18-5d65-4ddd-bd6f-7ba1cdead1ec"; + networking.hostName = "roshar"; # Define your hostname. + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + + # Configure network proxy if necessary + # networking.proxy.default = "http://user:password@proxy:port/"; + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + + # Enable networking + networking.networkmanager.enable = true; + + # Set your time zone. + time.timeZone = "Europe/Andorra"; + + # Select internationalisation properties. + i18n.defaultLocale = "en_US.UTF-8"; + + i18n.extraLocaleSettings = { + LC_ADDRESS = "en_US.UTF-8"; + LC_IDENTIFICATION = "en_US.UTF-8"; + LC_MEASUREMENT = "en_US.UTF-8"; + LC_MONETARY = "en_US.UTF-8"; + LC_NAME = "en_US.UTF-8"; + LC_NUMERIC = "en_US.UTF-8"; + LC_PAPER = "en_US.UTF-8"; + LC_TELEPHONE = "en_US.UTF-8"; + LC_TIME = "en_US.UTF-8"; + }; + + # Configure keymap in X11 + services.xserver.xkb = { + layout = "es"; + variant = "cat"; + }; + + hardware.graphics = { + enable = true; + }; + + hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta; + + hardware.nvidia = { + powerManagement.enable = true; + modesetting.enable = true; + open = true; + prime = { + sync.enable = true; + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + }; + + services.xserver.displayManager.gdm.enable = true; + services.xserver.videoDrivers = ["nvidia"]; + + # Configure console keymap + console.keyMap = "es"; + + # Define a user account. Don't forget to set a password with ‘passwd’. + users.users.zahori = { + isNormalUser = true; + description = "zahori"; + extraGroups = [ "networkmanager" "wheel" "video" ]; + packages = with pkgs; []; + }; + + # home-manager + home-manager.users.zahori = { pkgs, ... }: { + + programs.kitty = { + enable = true; + settings = { + enable_audio_bell = false; + }; + }; + + # check displays with `hyprctl monitors all` + services.kanshi = { + enable = true; + profiles = { + portable = { + outputs = [ + { + criteria = "LVDS-1"; + position = "0,0"; + mode = "1366x768@60Hz"; + scale = 1.00; + } + ]; + }; + }; + }; + + + home.stateVersion = "24.11"; + }; + + # Allow unfree packages + nixpkgs.config.allowUnfree = true; + + # 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 + unzip + vim + tmux + curl + git + wget + lshw + kitty + waybar + firefox + hyprpaper + mako + rofi + wofi + zathura + nemo-with-extensions + ]; + + programs.hyprland = { + enable = true; + xwayland.enable = true; + }; + + programs.waybar.enable = true; + + # 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; + + services.logind.lidSwitch = "suspend"; + services.logind.lidSwitchDocked = "ignore"; + services.logind.lidSwitchExternalPower = "ignore"; + + # Open ports in the firewall. + # networking.firewall.allowedTCPPorts = [ ... ]; + # networking.firewall.allowedUDPPorts = [ ... ]; + # Or disable the firewall altogether. + # networking.firewall.enable = false; + networking.nameservers = ["1.1.1.1" "9.9.9.9"]; + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "24.11"; # Did you read the comment? + +}