stable
This commit is contained in:
parent
53395d3971
commit
c2f85fddb8
14 changed files with 144 additions and 324 deletions
53
flake.nix
53
flake.nix
|
|
@ -3,46 +3,37 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
firefox-addons = {
|
||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote/v0.3.0";
|
||||
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs, nixpkgs-unstable, home-manager, lanzaboote, ... }@inputs:
|
||||
{ self, nixpkgs-unstable, nixpkgs, ... }@inputs:
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pkgsUnstable = import nixpkgs-unstable { inherit system; };
|
||||
in {
|
||||
nixosConfigurations.nixos-personal = lib.nixosSystem {
|
||||
inherit system;
|
||||
nixosConfigurations.dn-nix = nixpkgs.lib.nixosSystem {
|
||||
modules =
|
||||
[ ./system/configuration.nix lanzaboote.nixosModules.lanzaboote ];
|
||||
specialArgs = { inherit pkgs-unstable; };
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
danny = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./home ];
|
||||
extraSpecialArgs = {
|
||||
inherit pkgs-unstable;
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
[
|
||||
./system/configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
specialArgs = { inherit inputs; inherit pkgsUnstable; };
|
||||
};
|
||||
|
||||
# homeConfigurations = {
|
||||
# danny = home-manager.lib.homeManagerConfiguration {
|
||||
# inherit pkgs;
|
||||
# modules = [ ./home ];
|
||||
# extraSpecialArgs = {
|
||||
# inherit pkgs-unstable;
|
||||
# inherit inputs;
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# programs.home-manager.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue