1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-05-02 03:39:32 +00:00
This commit is contained in:
Rae 5e 2025-03-09 15:52:20 -04:00
parent e30250fd23
commit fea9f7203e
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
5 changed files with 8 additions and 7 deletions

View file

@ -30,7 +30,7 @@
name = hostname;
value = lib.nixosSystem {
system = "${arch}-linux";
specialArgs = { inherit inputs; };
specialArgs = { inherit inputs; hostname = hostname; };
modules = [ ./hosts/${hostname}/configuration.nix ];
};
};

View file

@ -1,4 +1,4 @@
{ inputs, pkgs, ... }: {
{ inputs, hostname, pkgs, ... }: {
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "rae" ];
@ -15,12 +15,15 @@
overlays = import ../overlays.nix inputs;
};
networking.hostName = hostname;
users.users.rae = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" "jackaudio" ];
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
};
programs.nix-ld.enable = true;
services.openssh = {
enable = true;
knownHosts =

View file

@ -1,5 +1,4 @@
{ inputs, config, lib, pkgs, ... }:
{
{ inputs, config, lib, pkgs, ... }: {
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
./hardware-configuration.nix
@ -41,7 +40,6 @@
};
networking = {
hostName = "ioides";
hosts = {
"10.0.0.2" = [ "near" "near.local" ];
};
@ -101,7 +99,6 @@
enable = true;
enableSSHSupport = true;
};
nix-ld.enable = true;
steam = {
enable = true;
remotePlay.openFirewall = true;
@ -119,6 +116,7 @@
xserver = {
enable = true;
xkb.layout = "us";
#?TODO maybe put all nvidia settings into its own module (i.e. r5e.hardware.nvidia.enable) + x11 with xdg config
videoDrivers = [ "nvidia" ];
windowManager = {
cwm.enable = true;

View file

@ -59,7 +59,6 @@
iptables -t nat -A POSTROUTING -o end0 -j MASQUERADE
'';
};
hostName = "near";
interfaces = {
# br0 = {
# ipv4.addresses = [