tidied flake.nix

This commit is contained in:
serenity-F 2024-11-07 14:13:28 +10:00
parent da0da1a6de
commit 882167204f
No known key found for this signature in database

View file

@ -1,36 +1,38 @@
## SerenityOS ## SerenityOS
##
## - A study in linux, packaging, user experience, ## - A study in linux, packaging, user experience,
## system and desktop environments, themeing, ## system and desktop environments, themeing,
## system administration, and functional programming. ## system administration, and functional programming.
##
## - We do not expect this to become a full-fledged linux ## - We do not expect this to become a full-fledged linux
## distribution. Or be adopted by anymany but ourselves, ## distribution. Or be adopted by anymany but ourselves,
## but NixOS and its 'flakes' architecture allows for us ## but NixOS and its 'flakes' architecture allows for us
## to experiment and learn about the required subjects ## to experiment and learn about the required subjects
## in a mock environment of sorts. ## in a mock environment of sorts.
##
## - Basically, we are playing linux distro simulator. /pos ## - Basically, we are playing linux distro simulator. /pos
##
## - Oh also, code-commenting is done like this: ## - Oh also, code-commenting is done like this:
## Place a hash directly before the code ## Place a hash directly before the code
## then indent the code by 1 extra space. ## then indent the code by 1 extra space.
##
## - A hash AFTER but on the same line ## - A hash AFTER but on the same line
## as the code lets you add any thoughts. ## as the code lets you add any thoughts.
##
## - - - - - - - - - - - - - - - - - - - - - - - -
## example.nix = { ## example.nix = {
## #option1 = true; ## option1 = true;
## #option2 = true; # disabled for x reason ## #option2 = [ "$string" ];
## option3 = false; ## #option3 = false; # disabled for x reason
## option4 = false;
## }; ## };
## - - - - - - - - - - - - - - - - - - - - - - - -
##
{ {
description = "SerenityOS v0.6.46"; description = "SerenityOS v0.6.50";
## Latest features: ## Latest features:
## - A more defined roadmap for future flake development is now in place. ## - ZFS Support fully implemented.
## - Work on ZFS support continues, expect complete functionality soon.
## - Work on commenting, reformating, and refactoring flake clode is progressing steadily. ## - Work on commenting, reformating, and refactoring flake clode is progressing steadily.
inputs = { inputs = {
@ -52,7 +54,7 @@
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
## optional, not necessary for the module ## optional, not necessary for the module
#inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
## Dots management ## Dots management
@ -61,20 +63,21 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
## Themeing ## Graphical config editor? seeing what's up w/ it - removed ForNow:tm:
#nixos-conf-editor.url = "github:snowfallorg/nixos-conf-editor";
## Easy themeing <3
nix-colors.url = "github:misterio77/nix-colors"; nix-colors.url = "github:misterio77/nix-colors";
## Ricer friendly wayland compositor ## Wayland compositor with eye-candy (for edgelords)
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = { hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins"; url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";
}; };
## Fix broken waybar on current nixpkgs-unstable
#waybar.url = "github:Alexays/Waybar";
## Graphical config editor? seeing what's up w/ it ## Fix broken waybar on current nixpkgs-unstable
nixos-conf-editor.url = "github:snowfallorg/nixos-conf-editor"; #waybar.url = "github:Alexays/Waybar";
}; };
@ -96,18 +99,20 @@
## Available through 'nixos-rebuild --flake .#your-hostname' ## Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = { nixosConfigurations = {
#iso = nixpkgs.lib.nixosSystem { ## Installer for easy nuke-n-paves
#specialArgs = {inherit inputs outputs;}; #iso = nixpkgs.lib.nixosSystem {
#modules = [ #specialArgs = {inherit inputs outputs;};
#"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix" #modules = [
#"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix" #"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix"
#disko.nixosModules.disko #"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
#sops-nix.nixosModules.sops #disko.nixosModules.disko
#./core/hosts/iso #sops-nix.nixosModules.sops
#]; #./core/hosts/iso
#}; #];
#};
persephone = nixpkgs.lib.nixosSystem { ## Laptop
persephone = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;}; specialArgs = {inherit inputs outputs;};
modules = [ modules = [
disko.nixosModules.disko disko.nixosModules.disko
@ -116,7 +121,8 @@
]; ];
}; };
hades = nixpkgs.lib.nixosSystem { ## Desktop
hades = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;}; specialArgs = {inherit inputs outputs;};
modules = [ modules = [
disko.nixosModules.disko disko.nixosModules.disko
@ -125,6 +131,16 @@
]; ];
}; };
## Home server
orcus = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [
disko.nixosModules.disko
sops-nix.nixosModules.sops
./core/hosts/orcus
];
};
}; };
}; };