modularized configs into flake

This commit is contained in:
Thilo Billerbeck 2023-10-28 23:51:26 +02:00
parent e615e06990
commit bb3bd3e7a3
4 changed files with 20 additions and 14 deletions

View file

@ -1,9 +1,12 @@
{ inputs, ... }:
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users.thilo = {
imports = [
./home-manager/modules/machine.nix
./../../home-manager/modules/machine.nix
];
machine = {

View file

@ -152,8 +152,4 @@
nixpkgs.config.permittedInsecurePackages = [
"electron-24.8.6"
];
environment.systemPackages = with nixpkgs; [
inputs.nix-software-center.packages.x86_64-linux.nix-software-center
inputs.devenv.packages.x86_64-linux.devenv
];
}

View file

@ -13,7 +13,11 @@
devenv.url = "github:cachix/devenv";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
in
{
nixosConfigurations.thilo-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
@ -21,6 +25,7 @@
./configs/thilo-pc/nixos.nix
./configs/thilo-pc/home.nix
];
specialArgs = { inherit inputs; };
};
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, inputs, ... }:
with lib;
{
@ -66,6 +66,7 @@ with lib;
kubectl
pulumiPackages.pulumi-language-nodejs
ncdu
inputs.devenv.packages.x86_64-linux.devenv
] ++ (if config.machine.isGraphical then [
(pkgs.nerdfonts.override {
fonts = [ "JetBrainsMono" "FiraCode" "FiraMono" ];
@ -102,6 +103,7 @@ with lib;
quickgui
trilium-desktop
anki
inputs.nix-software-center.packages.x86_64-linux.nix-software-center
] else [ ]) ++ (if config.machine.isGnome then [
gnomeExtensions.blur-my-shell
gnomeExtensions.dash-to-panel