diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-01-31 22:02:28 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-01-31 22:02:28 +0530 | 
| commit | 01bb0877c285383fd2857920048bd2576f4d31e9 (patch) | |
| tree | b6f26596f1051baf5b791450d6158a69363f6c76 /modules | |
| parent | 578dd91bd1af79b256166ecf797344611790e267 (diff) | |
restructure
Diffstat (limited to '')
| -rw-r--r-- | modules/compromyse.nix | 10 | ||||
| -rw-r--r-- | modules/global.nix | 12 | ||||
| -rw-r--r-- | modules/nvidia.nix (renamed from OwO.nix) | 13 | ||||
| -rw-r--r-- | modules/ssh.nix | 9 | 
4 files changed, 32 insertions, 12 deletions
diff --git a/modules/compromyse.nix b/modules/compromyse.nix new file mode 100644 index 0000000..0d204d2 --- /dev/null +++ b/modules/compromyse.nix @@ -0,0 +1,10 @@ +{ config, ... }: + +{ +  users.users.compromyse = { +    initialPassword = "changeme"; +    isNormalUser = true; +    # openssh.authorizedKeys.keys = []; +    extraGroups = [ "wheel" "storage" "libvirtd" ]; +  }; +} diff --git a/modules/global.nix b/modules/global.nix new file mode 100644 index 0000000..61575c1 --- /dev/null +++ b/modules/global.nix @@ -0,0 +1,12 @@ +{ +  nix.settings = { +    experimental-features = [ "nix-command" "flakes" ]; +    auto-optimise-store = true; +  }; + +  nixpkgs.config.allowUnfree = true; + +  time.timeZone = "Asia/Kolkata"; + +  system.stateVersion = "23.11"; +} diff --git a/OwO.nix b/modules/nvidia.nix index f57f2c6..a3f6074 100644 --- a/OwO.nix +++ b/modules/nvidia.nix @@ -1,10 +1,6 @@ -{ config, pkgs, ... }: +{ pkgs, config, ... }:  { -  boot.extraModprobeConfig = "options kvm_intel nested=1"; - -  networking.hostName = "OwO"; -    hardware.opengl = {      enable = true;      driSupport = true; @@ -26,11 +22,4 @@        nvidiaBusId = "PCI:1:0:0";      };    }; - -  fileSystems."/data" = { -    device = "/dev/sda"; -    fsType = "ext4"; -  }; - -  time.timeZone = "Asia/Kolkata";  } diff --git a/modules/ssh.nix b/modules/ssh.nix new file mode 100644 index 0000000..a389210 --- /dev/null +++ b/modules/ssh.nix @@ -0,0 +1,9 @@ +{ pkgs, config, ... }: + +{ +  services.openssh = { +    enable = true; +    permitRootLogin = "no"; +    passwordAuthentication = false; +  }; +}  | 
