cleaning up some monitor related stuff
This commit is contained in:
parent
aa678c9101
commit
5da6515a4c
5 changed files with 275 additions and 57 deletions
109
flake.nix
109
flake.nix
|
@ -12,18 +12,20 @@
|
|||
|
||||
nix-flatpak.url = "github:gmodena/nix-flatpak"; # unstable branch
|
||||
|
||||
yazi = {
|
||||
yazi = {
|
||||
url = "github:sxyazi/yazi";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
shikane = {
|
||||
shikane = {
|
||||
url = "git+https://gitlab.com/w0lff/shikane.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||
|
||||
nix-rice = { url = "github:bertof/nix-rice"; };
|
||||
|
||||
kmonad = {
|
||||
url = "github:kmonad/kmonad?dir=nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -39,7 +41,7 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
musnix = {
|
||||
musnix = {
|
||||
url = "github:musnix/musnix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
@ -80,7 +82,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = {nixpkgs, home-manager, self, ... } @ inputs:
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
self,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
inherit (nixpkgs.lib) genAttrs replaceStrings;
|
||||
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
|
||||
|
@ -94,58 +102,59 @@
|
|||
nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
|
||||
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (
|
||||
pkgs:
|
||||
packagesFromDirectoryRecursive {
|
||||
inherit (pkgs) callPackage;
|
||||
{
|
||||
packages = forAllSystems (
|
||||
pkgs:
|
||||
packagesFromDirectoryRecursive {
|
||||
inherit (pkgs) callPackage;
|
||||
|
||||
directory = ./packages;
|
||||
}
|
||||
);
|
||||
directory = ./packages;
|
||||
}
|
||||
);
|
||||
|
||||
nixosModules = genAttrs (map nameOf (listFilesRecursive ./modules/system)) (
|
||||
name: import ./modules/system/${name}.nix
|
||||
);
|
||||
nixosModules = genAttrs (map nameOf (listFilesRecursive ./modules/system)) (
|
||||
name: import ./modules/system/${name}.nix
|
||||
);
|
||||
|
||||
homeModules = genAttrs (map nameOf (listFilesRecursive ./modules/home)) (
|
||||
name: import ./modules/home/${name}.nix);
|
||||
homeModules = genAttrs (map nameOf (listFilesRecursive ./modules/home)) (
|
||||
name: import ./modules/home/${name}.nix
|
||||
);
|
||||
|
||||
overlays = genAttrs (map nameOf (listFilesRecursive ./overlays)) (
|
||||
name: import ./overlays/${name}.nix
|
||||
);
|
||||
overlays = genAttrs (map nameOf (listFilesRecursive ./overlays)) (
|
||||
name: import ./overlays/${name}.nix
|
||||
);
|
||||
|
||||
nixosConfigurations = {
|
||||
eddie = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
nix-config = self;
|
||||
};
|
||||
modules = [
|
||||
inputs.kmonad.nixosModules.default
|
||||
inputs.musnix.nixosModules.musnix
|
||||
inputs.niri.nixosModules.niri
|
||||
./hosts/eddie/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"emenel" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
nix-config = self;
|
||||
};
|
||||
|
||||
modules = [
|
||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.niri.homeModules.niri
|
||||
./homes/emenel/default.nix
|
||||
];
|
||||
nixosConfigurations = {
|
||||
eddie = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
nix-config = self;
|
||||
};
|
||||
modules = [
|
||||
inputs.kmonad.nixosModules.default
|
||||
inputs.musnix.nixosModules.musnix
|
||||
inputs.niri.nixosModules.niri
|
||||
./hosts/eddie/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"emenel" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
nix-config = self;
|
||||
};
|
||||
|
||||
modules = [
|
||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.niri.homeModules.niri
|
||||
./homes/emenel/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue