dregil: Import current config into flake
This commit is contained in:
parent
01aa1ae9ee
commit
808f23e20c
6 changed files with 373 additions and 217 deletions
38
flake.nix
38
flake.nix
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
hm = {
|
||||
url = "github:nix-community/home-manager/release-22.11";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
|
|
@ -13,8 +14,10 @@
|
|||
inputs.nixpkgs-22_11.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
emacs.url = "github:nix-community/emacs-overlay";
|
||||
emacs.inputs.nixpkgs.follows = "nixpkgs";
|
||||
emacs = {
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# age for nix to store encrypted passwords conveniently
|
||||
agenix = {
|
||||
|
|
@ -23,7 +26,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { self, hm, nixpkgs, agenix, snm, ... }@inputs: {
|
||||
outputs = { self, home-manager, nixpkgs, agenix, snm, ... }@inputs: {
|
||||
nixosConfigurations."thrall" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
|
|
@ -37,7 +40,7 @@
|
|||
./modules/security.nix
|
||||
./hosts/thrall
|
||||
agenix.nixosModules.age
|
||||
hm.nixosModules.home-manager
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
|
@ -46,25 +49,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
nixosConfigurations."dregil" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
({
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = with inputs; [ emacs.overlay ];
|
||||
};
|
||||
})
|
||||
./modules/security.nix
|
||||
./hosts/dregil
|
||||
agenix.nixosModules.age
|
||||
hm.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.alex = import ./home/cli.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
nixosConfigurations."dregil" = import ./hosts/dregil { inherit inputs; };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue