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,49 @@
{ self, inputs, ... }: {
# module declaration
flake.modules.nixos.niri = { pkgs, ... }: {
programs.niri = {
# enables niri
enable = true;
};
};
# defines a niri hm config
flake.modules.homeManager.niri =
{
config,
pkgs,
lib,
...
}:
{
imports = [
# launcher
self.modules.homeManager.wofi
# desktop shell
self.modules.homeManager.noctalia
];
programs = {
niri = {
# enables niri
enable = true;
# niri settings
settings = {
};
};
};
};
}

View file

@ -0,0 +1,17 @@
{ inputs, ... }: {
# module declaration
flake.nixosModules.gaming = { pkgs, ... }: {
# options declarations
#programs.whatever = {};
# steam
programs.steam = { };
# packages to include
environment.systemPackages = with pkgs; [ ];
};
}

View file

@ -1,5 +0,0 @@
TODO:
- dendritify (use wrappers for) desktop configurations
- make noctalia discrete
- make gnome desktop

View file

@ -1,68 +0,0 @@
{ self, inputs, ... }: {
# module declaration
flake.nixosModules.niri = { pkgs, lib, ... }: {
programs.niri = {
# enables niri
enable = true;
# use a custom niri package
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myNiri;
};
};
# defines a custom niri package
perSystem =
{
pkgs,
lib,
self',
...
}:
{
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
# follow global packages
inherit pkgs;
# customised niri settings
settings = {
# xwayland-satellite package to use
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
# makes our custom noctalia a dependency and spawns it at startup
spawn-at-startup = [
(lib.getExe self'.packages.myNoctalia)
];
# keyboard layout and binds
input.keyboard.xkb.layout = "us";
binds = {
# terminal and launcher binds
"Mod+Return".spawn-sh = lib.getExe self'.packages.myKitty;
"Mod+Tab".spawn-sh = "${lib.getExe self.packages.myNoctalia} ipc call launcher toggle";
# window control binds
"Mod+Q".close-window = null;
};
# layout and visual settings
layout = {
gaps = 5;
};
};
};
};
}

View file

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

View file

@ -1,5 +0,0 @@
TODO:
- make `kitty.nix` the core of -> `default.nix`
- dendiritify (use wrappers for) terminal config

View file

@ -19,6 +19,9 @@
self.nixosModules.hades
self.nixosModules.hades-hardware
# extra modules
self.modules.nixos.gaming
# home manager and home manager imports
inputs.home-manager.nixosModules.home-manager
{
@ -26,7 +29,7 @@
home-manager.users.serenity = {
imports = [
config.flake.homeModules.core-home
#config.flake.homeModules.hades-home
config.flake.homeModules.desktop
];
};
}

View file

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

View file

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

View file

@ -1,28 +0,0 @@
{ inputs, ... }:
# let bindings
let
#foo = bar
#
in
{
# try `$ nix run .#boilerplate`
flake = {
# modules declaration
nixosConfigurations.main = inputs.nixpkgs.lib.nixosSystem {
# list of modules to import
modules = [
./configuration.nix
];
};
};
}