updated flake.nix

This commit is contained in:
serenity-F 2024-11-18 12:47:07 +10:00
parent 86803297e8
commit a2ced94d06
No known key found for this signature in database

View file

@ -30,7 +30,7 @@
## ##
{ {
description = "SerenityOS v0.6.99"; # Nice! description = "SerenityOS v0.7.0";
## Latest features: ## Latest features:
## - Neovim installed, set up with stolen config and plugins ## - Neovim installed, set up with stolen config and plugins
## - ReGreet implemented, yet to be tested ## - ReGreet implemented, yet to be tested
@ -59,23 +59,30 @@
}; };
## Flake parts ## Flake parts
flake-utils.url = "github:numtide/flake-utils"; flake-utils = {
url = "github:numtide/flake-utils";
};
flake-parts = { flake-parts = {
url = "github:hercules-ci/flake-parts"; url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
## Lix, alternative nix implementation ## Lix, alternative nix implementation
lix = { lix = { # lix language
url = "git+https://git.lix.systems/lix-project/lix"; url = "git+https://git.lix.systems/lix-project/lix";
flake = false; flake = false;
}; };
lix-module = { lix-module = { # lix nixos module
url = "git+https://git.lix.systems/lix-project/nixos-module"; url = "git+https://git.lix.systems/lix-project/nixos-module";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.lix.follows = "lix"; inputs.lix.follows = "lix";
}; };
## Musnix - https://github.com/musnix/musnix
musnix = {
url = "github:musnix/musnix";
};
## Secrets management ## Secrets management
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
@ -88,7 +95,8 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
## Zoomer text editor
nixvim = { nixvim = {
url = "github:nix-community/nixvim"; url = "github:nix-community/nixvim";
## If you are not running an unstable channel of nixpkgs, ## If you are not running an unstable channel of nixpkgs,
@ -111,10 +119,17 @@
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";
}; };
## nixos generators
nixos-generators = {
url = "github:nix-ccommunity/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, disko, sops-nix, home-manager, outputs = { self, nixpkgs, disko, sops-nix, home-manager,
nixvim, nix-colors, hyprland, hyprland-plugins, ... } nixvim, nix-colors, hyprland, hyprland-plugins, nixos-generators, ... }
@ inputs: let @ inputs: let
inherit (self) outputs; inherit (self) outputs;
@ -124,24 +139,10 @@
nixosConfigurations = { nixosConfigurations = {
## Installer for easy nuke-n-paves ## Installer for easy nuke-n-paves
#iso = nixpkgs.lib.nixosSystem { iso = nixos-generators.nixosGenerate {
#specialArgs = {inherit inputs outputs;}; system = "x86_64-linux";
#modules = [
#"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix"
#"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
#disko.nixosModules.disko
#sops-nix.nixosModules.sops
#./core/hosts/iso
#];
#};
## Laptop
persephone = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [ modules = [
disko.nixosModules.disko ./hosts/iso
sops-nix.nixosModules.sops
./hosts/persephone
]; ];
}; };
@ -165,6 +166,16 @@
]; ];
}; };
## Laptop
persephone = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [
disko.nixosModules.disko
sops-nix.nixosModules.sops
./hosts/persephone
];
};
}; };
}; };