Clean up config step1

This commit is contained in:
2023-09-08 11:19:48 +02:00
parent 4327733871
commit 2f0f8907d4
7 changed files with 89 additions and 123 deletions
Generated
-16
View File
@@ -140,21 +140,6 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nur": {
"locked": {
"lastModified": 1693424795,
"narHash": "sha256-7HBiRszliR7UjR9q4H4SXov6T7Tvoluuz/0M58jev0E=",
"owner": "nix-community",
"repo": "NUR",
"rev": "4a0b2e813a93e5932fbedaafab47e9c404e0a812",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"ags": "ags", "ags": "ags",
@@ -163,7 +148,6 @@
"impermanence": "impermanence", "impermanence": "impermanence",
"jq": "jq", "jq": "jq",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur",
"tuxedo-nixos": "tuxedo-nixos" "tuxedo-nixos": "tuxedo-nixos"
} }
}, },
+51 -71
View File
@@ -9,7 +9,7 @@
}; };
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
# neovim-nightly.url = "github:nix-community/neovim-nightly-overlay"; # neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
nur.url = "github:nix-community/NUR"; # nur.url = "github:nix-community/NUR";
jq = { jq = {
url = "github:reegnz/jq-zsh-plugin"; url = "github:reegnz/jq-zsh-plugin";
flake = false; flake = false;
@@ -33,7 +33,7 @@
self, self,
home-manager, home-manager,
# neovim-nightly, # neovim-nightly,
nur, # nur,
ags, ags,
nixpkgs, nixpkgs,
tuxedo-nixos, tuxedo-nixos,
@@ -42,87 +42,67 @@
} @ rawInput: let } @ rawInput: let
user = "zoriya"; user = "zoriya";
mkSystem = system: hostname: de: let mkSystem = system: hostname: de: custom: let
inputs = rawInput // {inherit user;}; inputs = rawInput // {inherit user;};
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
specialArgs = inputs; specialArgs = inputs;
modules = [ modules =
./modules/misc [
(./modules + "/${de}") ./modules/misc
nur.nixosModules.nur (./modules + "/${de}")
{ # nur.nixosModules.nur
nixpkgs.overlays = [ {
(import ./overlays { inherit dwl-source; }) nixpkgs.overlays = [
nur.overlay (import ./overlays {inherit dwl-source;})
# neovim-nightly.overlay # nur.overlay
]; # neovim-nightly.overlay
}
({pkgs, ...}: {
networking.hostName = hostname;
users.users.root.hashedPassword = builtins.readFile ./password/root;
users.users.${user} = {
hashedPassword = builtins.readFile ./password/${user};
isNormalUser = true;
extraGroups = ["wheel" "input" "docker" "audio" "mlocate"];
shell = pkgs.zsh;
packages = with pkgs; [
git
docker-compose
jq
]; ];
}; }
})
./hosts/${hostname}/hardware-configuration.nix
home-manager.nixosModules.home-manager ({pkgs, ...}: {
{ networking.hostName = hostname;
home-manager = { users.users.root.hashedPassword = builtins.readFile ./password/root;
useGlobalPkgs = true; users.users.${user} = {
useUserPackages = true; hashedPassword = builtins.readFile ./password/${user};
extraSpecialArgs = inputs; isNormalUser = true;
users.${user} = { extraGroups = ["wheel" "input" "docker" "audio" "mlocate"];
imports = [ shell = pkgs.zsh;
./modules/home packages = with pkgs; [
(./modules + "/${de}/home.nix") git
docker-compose
jq
]; ];
}; };
}; })
} ./hosts/${hostname}/hardware-configuration.nix
({pkgs, ...}: { home-manager.nixosModules.home-manager
programs.zsh.enable = true; {
environment.shells = with pkgs; [zsh]; home-manager = {
useGlobalPkgs = true;
services.locate = { useUserPackages = true;
enable = true; extraSpecialArgs = inputs;
locate = pkgs.mlocate; users.${user} = {
interval = "hourly"; imports = [
localuser = null; ./modules/home
}; (./modules + "/${de}/home.nix")
];
virtualisation.docker.enable = true; };
environment.systemPackages = with pkgs; [ };
docker-compose }
git ]
man-pages ++ custom;
man-pages-posix
ags.packages.x86_64-linux.default
];
documentation.dev.enable = true;
})
tuxedo-nixos.nixosModules.default
({lib, ...}: {
hardware.tuxedo-keyboard.enable = true;
hardware.tuxedo-control-center.enable = true;
})
];
}; };
in { in {
nixosConfigurations = { nixosConfigurations = {
fuhen = mkSystem "x86_64-linux" "fuhen" "dwl"; fuhen = mkSystem "x86_64-linux" "fuhen" "dwl" [
tuxedo-nixos.nixosModules.default
({lib, ...}: {
hardware.tuxedo-keyboard.enable = true;
hardware.tuxedo-control-center.enable = true;
})
];
}; };
}; };
} }
+18 -8
View File
@@ -1,10 +1,4 @@
{ {pkgs, ags, ...}: {
config,
lib,
pkgs,
inputs,
...
}: {
services.xserver = { services.xserver = {
enable = true; enable = true;
displayManager = { displayManager = {
@@ -24,12 +18,28 @@
}; };
}; };
environment.systemPackages = with pkgs; [dwl]; environment.systemPackages = with pkgs; [
dwl
ags.packages.x86_64-linux.default
];
# Those two lines prevent a crash with gdm autologin. # Those two lines prevent a crash with gdm autologin.
systemd.services."getty@tty1".enable = false; systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false; systemd.services."autovt@tty1".enable = false;
services.printing.enable = true;
security.rtkit.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
};
hardware.bluetooth.enable = true;
security.polkit.enable = true; security.polkit.enable = true;
systemd.user.services.polkit-gnome-authentication-agent-1 = { systemd.user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1"; description = "polkit-gnome-authentication-agent-1";
+1
View File
@@ -28,6 +28,7 @@ in {
pciutils pciutils
sshfs-fuse sshfs-fuse
zip zip
scc
nodePackages.http-server nodePackages.http-server
nodePackages.live-server nodePackages.live-server
]; ];
+18 -21
View File
@@ -1,29 +1,9 @@
{ {pkgs, ...}: {
lib,
config,
pkgs,
user,
...
}: {
imports = [ imports = [
./fonts.nix ./fonts.nix
./impermanence.nix ./impermanence.nix
]; ];
services.printing.enable = true;
security.rtkit.enable = true;
security.polkit.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
};
hardware.bluetooth.enable = true;
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
Defaults lecture="never" Defaults lecture="never"
''; '';
@@ -55,8 +35,25 @@
wineWowPackages.stable wineWowPackages.stable
wineWowPackages.waylandFull wineWowPackages.waylandFull
winetricks winetricks
docker-compose
git
man-pages
man-pages-posix
]; ];
programs.zsh.enable = true;
environment.shells = with pkgs; [zsh];
services.locate = {
enable = true;
locate = pkgs.mlocate;
interval = "hourly";
localuser = null;
};
virtualisation.docker.enable = true;
documentation.dev.enable = true;
# boot.kernelPackages = pkgs.linuxPackages_latest; # boot.kernelPackages = pkgs.linuxPackages_latest;
# This was needed on older versions of the kernel. # This was needed on older versions of the kernel.
#boot.kernelParams = ["i915.force_probe=46a6" "i915.enable_psr=0"]; #boot.kernelParams = ["i915.force_probe=46a6" "i915.enable_psr=0"];
-1
View File
@@ -1,7 +1,6 @@
{ {
pkgs, pkgs,
config, config,
lib,
... ...
}: { }: {
console = { console = {
+1 -6
View File
@@ -1,9 +1,4 @@
{ {impermanence, ...}: {
lib,
config,
impermanence,
...
}: {
imports = [impermanence.nixosModules.impermanence]; imports = [impermanence.nixosModules.impermanence];
nix = { nix = {
settings = { settings = {