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 = {};
};
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:
lib.recursiveUpdate defaultConf (import ./hosts/${host} inputs

View file

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

View file

@ -1,5 +1,5 @@
{
config,
system-config,
pkgs,
lib,
...
@ -32,5 +32,5 @@
lutris
];
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 = {
config.gaming.enable = false;
};

View file

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