further tidying

This commit is contained in:
serenity-F 2026-08-31 16:26:45 +10:00
parent c351c646a3
commit 5e395ca047
No known key found for this signature in database
29 changed files with 110 additions and 155 deletions

View file

@ -0,0 +1,40 @@
{ self, inputs, ... }:
# let bindings
let
#foo = bar
#
in
{
# nixos module declaration
flake.modules.nixos.modulename = { ... }: {
# list of modules to import
modules = [
self.modules.nixos.othermodule
];
imports = [
./otherfile.nix
];
# options
programs = { };
};
# home manager module declaration
flake.modules.homeManager.modulename = { ... }: {
# module imports
imports = [ ];
# options
programs = { };
};
}

View file

@ -0,0 +1,16 @@
{ inputs, ... }: {
# module declaration
flake.nixosModules.myFirstModule = { pkgs, ... }: {
# options declarations
programs.firefox.enable = true;
# packages to include
environment.systemPackages = with pkgs; [
helix
];
};
}

View file

@ -0,0 +1,27 @@
{ inputs, self, ... }: {
# module declaration
flake.nixosConfigurations.myMachine = inputs.nixpkgs.lib.nixosSystem {
# modules to import
modules = with self; [
nixosModules.myMachineModule
nixosModules.myFirstModule
];
};
# module declaration
flake.nixosModules.myMachineModule = { pkgs, ... }: {
# options declarations
boot.loader.grub.enable = true;
# packages to import
environment.systemPackages = with self; [
packages.${pkgs.system}.myPackage
];
};
}

View file

@ -0,0 +1,17 @@
{ inputs, ... }: {
# packages declaration
perSystem = { pkgs, ... }: {
#package declaration
packages.myPackage = pkgs.stdenv.mkDerivation {
# package options
pname = "myPackage";
version = "0.0.1";
};
};
}

0
assets/media/avatar.png Normal file
View file

View file

@ -0,0 +1 @@
TO DO

View file

@ -0,0 +1,20 @@
```
.
├── README.md
├── flake.nix
├── modules
├── hosts
│   └── hades
├── homes
│   ├── users
│   ├── desktop
│   └── modules
│   └── nvim
├── resources
└── keyring
   ├── sops.nix
   ├── secrets.yaml
   └── sync
```
planned flake structure

View file

View file