This commit is contained in:
Spectre 2024-06-08 00:04:13 +02:00
parent caf6a5517c
commit f59ea55244
10 changed files with 24 additions and 23 deletions

View file

@ -45,7 +45,7 @@
extraConfig = {}; extraConfig = {};
}; };
hosts = builtins.filter (host: builtins.pathExists ./hosts/${host}/configuration.nix) (builtins.attrNames (builtins.readDir ./hosts)); hosts = builtins.filter (host: builtins.pathExists ./hosts/${host}/default.nix) (builtins.attrNames (builtins.readDir ./hosts));
importHostConf = host: importHostConf = host:
lib.recursiveUpdate defaultConf (import ./hosts/${host} inputs lib.recursiveUpdate defaultConf (import ./hosts/${host} inputs

View file

@ -7,7 +7,6 @@
enable = true; enable = true;
package = helix.packages.${pkgs.system}.default; package = helix.packages.${pkgs.system}.default;
settings = { settings = {
theme = "gruvbox_dark_hard";
editor = { editor = {
line-number = "relative"; line-number = "relative";
mouse = false; mouse = false;

View file

@ -1,5 +1,5 @@
{ {
config, system-config,
pkgs, pkgs,
lib, lib,
... ...
@ -32,5 +32,5 @@
lutris lutris
]; ];
in in
common ++ (lib.optionals config.gaming.enable gaming); common ++ (lib.optionals system-config.gaming.enable gaming);
} }

View file

@ -1,4 +1,6 @@
{...}: { {...}: {
system = "x86_64-linux";
extraConfig = { extraConfig = {
config.gaming.enable = false; config.gaming.enable = false;
}; };

View file

@ -6,15 +6,12 @@
} @ inputs: let } @ inputs: let
inherit (conf) system; inherit (conf) system;
pkgs = import nixpkgs { pkgs = import ./nixpkgs.nix {inherit system nixpkgs;};
inherit (conf) system;
config.allowUnfree = true;
};
specialArgs = inputs; specialArgs = inputs;
in { in {
build = nixpkgs.lib.nixosSystem { build = nixpkgs.lib.nixosSystem {
inherit system pkgs specialArgs; inherit system specialArgs;
modules = [ modules = [
./base.nix ./base.nix
@ -32,6 +29,7 @@ in {
./fonts.nix ./fonts.nix
./nix.nix ./nix.nix
./users.nix ./users.nix
./sops.nix
./ssh.nix ./ssh.nix
./steam.nix ./steam.nix
./stylix.nix ./stylix.nix

8
system/nixpkgs.nix Normal file
View file

@ -0,0 +1,8 @@
{
nixpkgs,
system,
}:
import nixpkgs {
inherit system;
config.allowUnfree = true;
}

View file

@ -1,4 +1,6 @@
{conf, ...}: { {impermanence, ...}: {
imports = [impermanence.nixosModule];
environment.persistence."/persist/data" = { environment.persistence."/persist/data" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [

View file

@ -1,2 +1,3 @@
{...}: { {sops-nix, ...}: {
imports = [sops-nix.nixosModules.sops];
} }

View file

@ -1,4 +1,6 @@
{...}: { {stylix, ...}: {
imports = [stylix.nixosModules.stylix];
stylix.image = ../wallpapers/default.png; stylix.image = ../wallpapers/default.png;
stylix.polarity = "dark"; stylix.polarity = "dark";
} }

View file

@ -13,17 +13,6 @@
}; };
}; };
home-manager = {
extraSpecialArgs = {
inherit inputs;
conf = conf;
config = config;
sops-nix = inputs.inputs.sops-nix;
};
useGlobalPkgs = true;
useUserPackages = true;
};
home-manager.users = let home-manager.users = let
hm = import ../home; hm = import ../home;
in { in {