Reorganize and refactor project
This commit is contained in:
parent
ed1e654706
commit
afcc583dcf
35 changed files with 130 additions and 300 deletions
42
flake.nix
42
flake.nix
|
@ -42,45 +42,21 @@
|
|||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs
|
||||
, nixpkgs-unstable
|
||||
, home-manager
|
||||
, homeage
|
||||
, agenix
|
||||
, nur
|
||||
, nixos-hardware
|
||||
, stylix
|
||||
{ self
|
||||
, nixpkgs
|
||||
, ...
|
||||
}@inputs:
|
||||
let
|
||||
mkNixosSystem = extraModule: nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
specialArgs = {
|
||||
inherit inputs system;
|
||||
flake = self;
|
||||
};
|
||||
|
||||
modules = [
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
nur.overlay
|
||||
(final: _prev: {
|
||||
unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
./configuration.nix
|
||||
stylix.nixosModules.stylix
|
||||
./modules/nixos/lanzaboote.nix
|
||||
agenix.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.pim = {
|
||||
imports = [ ./home-manager homeage.homeManagerModules.homeage ];
|
||||
};
|
||||
}
|
||||
extraModule
|
||||
];
|
||||
};
|
||||
|
@ -88,7 +64,7 @@
|
|||
{
|
||||
nixosConfigurations = {
|
||||
x260 = mkNixosSystem ({ pkgs, lib, ... }: {
|
||||
imports = [ nixos-hardware.nixosModules.lenovo-thinkpad-x260 ];
|
||||
imports = [ inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260 ];
|
||||
|
||||
config = {
|
||||
pim.lanzaboote.enable = true;
|
||||
|
@ -170,7 +146,7 @@
|
|||
});
|
||||
|
||||
sue = mkNixosSystem ({ ... }: {
|
||||
imports = [ nixos-hardware.nixosModules.dell-xps-13-9310 ];
|
||||
imports = [ inputs.nixos-hardware.nixosModules.dell-xps-13-9310 ];
|
||||
|
||||
config = {
|
||||
pim.lanzaboote.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue