further tidying
This commit is contained in:
parent
c351c646a3
commit
5e395ca047
29 changed files with 110 additions and 155 deletions
40
assets/boilerplate/boilerplate.nix
Normal file
40
assets/boilerplate/boilerplate.nix
Normal 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 = { };
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
49
modules/features/desktop/niri.nix
Normal file
49
modules/features/desktop/niri.nix
Normal 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 = {
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
17
modules/features/programs/gaming.nix
Normal file
17
modules/features/programs/gaming.nix
Normal 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; [ ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
TODO:
|
|
||||||
|
|
||||||
- dendritify (use wrappers for) desktop configurations
|
|
||||||
- make noctalia discrete
|
|
||||||
- make gnome desktop
|
|
||||||
|
|
@ -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;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
TODO:
|
|
||||||
|
|
||||||
- make `kitty.nix` the core of -> `default.nix`
|
|
||||||
- dendiritify (use wrappers for) terminal config
|
|
||||||
|
|
@ -19,6 +19,9 @@
|
||||||
self.nixosModules.hades
|
self.nixosModules.hades
|
||||||
self.nixosModules.hades-hardware
|
self.nixosModules.hades-hardware
|
||||||
|
|
||||||
|
# extra modules
|
||||||
|
self.modules.nixos.gaming
|
||||||
|
|
||||||
# home manager and home manager imports
|
# home manager and home manager imports
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|
@ -26,7 +29,7 @@
|
||||||
home-manager.users.serenity = {
|
home-manager.users.serenity = {
|
||||||
imports = [
|
imports = [
|
||||||
config.flake.homeModules.core-home
|
config.flake.homeModules.core-home
|
||||||
#config.flake.homeModules.hades-home
|
config.flake.homeModules.desktop
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue