Compare commits
9 Commits
84ef15e3d1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b9d78079d2 | |||
| 07b9b65382 | |||
| 58bbf942d8 | |||
| aeee74c4ad | |||
| 5bcfe2dc8b | |||
| ae327d6d22 | |||
| 8f71ce170f | |||
| 5b5df9b66f | |||
| 25401f8a5b |
24
default.nix
24
default.nix
@@ -2,12 +2,14 @@
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
||||
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; device3 = "/dev/sda"; })
|
||||
];
|
||||
|
||||
config = {
|
||||
@@ -33,6 +35,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
modesetting.enable = true;
|
||||
nvidiaPersistenced = true;
|
||||
};
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/var/lib/sops/age/keys.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
@@ -46,16 +54,24 @@
|
||||
};
|
||||
|
||||
sysconfig = {
|
||||
|
||||
docker.nvidia = true;
|
||||
|
||||
remoteBuildClient = false;
|
||||
|
||||
users = {
|
||||
nathan = {
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
sshKeys = [
|
||||
isSuperuser = true;
|
||||
extraGroups = [ "networkmanager" "docker" ];
|
||||
ssh.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsU69CxfQk58CvItPN426h5Alnpb60SH37wet97Vb57 nathan@laptop"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnUhN2uHwAJF/SLRX3wlGRmfhV3zpP88JQAYB+gh8jW nathan@localhost"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
|
||||
home-manager = {
|
||||
enable = true;
|
||||
standalone = false;
|
||||
extraModules = [
|
||||
{
|
||||
homeconfig = {
|
||||
@@ -76,7 +92,7 @@
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wayvnc
|
||||
openrgb
|
||||
openrgb
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user