- Formatted everything using Alejandra

- Added 'ncli format' as a quick command to format everything
This commit is contained in:
2026-03-11 16:03:16 +01:00
parent 25ecab4a70
commit c6862c78db
36 changed files with 987 additions and 839 deletions

View File

@ -4,8 +4,8 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware"; #To Provide Framework13 hardware modules
nixos-hardware.url = "github:NixOS/nixos-hardware"; #To Provide Framework13 hardware modules
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
@ -14,19 +14,19 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
zen-browser.url = "github:0xc000022070/zen-browser-flake";
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
#stylix.url = "github:nix-community/stylix/";
stylix.url = "github:nix-community/stylix/master"; #Had to use branch or it would not build corrently
stylix.url = "github:nix-community/stylix/master"; #Had to use branch or it would not build corrently
stylix.inputs.nixpkgs.follows = "nixpkgs";
quickshell = {
url = "github:outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
@ -43,28 +43,38 @@
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
grub2-themes.url = "github:vinceliuice/grub2-themes";
};
outputs = inputs@{ nixpkgs, alejandra, home-manager, plasma-manager, nixos-hardware, stylix, niri, zen-browser, grub2-themes, nix-flatpak, ... }:
let
outputs = inputs @ {
nixpkgs,
alejandra,
home-manager,
plasma-manager,
nixos-hardware,
stylix,
niri,
zen-browser,
grub2-themes,
nix-flatpak,
...
}: let
username = "cookiez";
hostname = "nixos";
project = "NixOS";
version = "26.05"; #DO NOT change to "unstable" as it is not a valid option for all cascading uses of this variable
version = "26.05"; #DO NOT change to "unstable" as it is not a valid option for all cascading uses of this variable
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs {inherit system;};
framework13 = true;
in
{
framework13 = true;
in {
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
nixosConfigurations = {
${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
specialArgs = {
inherit inputs;
inherit username;
inherit version;
@ -73,11 +83,18 @@
inherit alejandra;
host = hostname;
};
modules = [
./modules
#Conditional Modules!
] ++ (if framework13 then [ nixos-hardware.nixosModules.framework-13-7040-amd ] else [ ]) ++ [
];
modules =
[
./modules
#Conditional Modules!
]
++ (
if framework13
then [nixos-hardware.nixosModules.framework-13-7040-amd]
else []
)
++ [
];
};
};
};