mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: Add sdcv
This commit is contained in:
parent
608cd05802
commit
a9d8bcb500
16 changed files with 267 additions and 112 deletions
|
|
@ -20,81 +20,86 @@
|
|||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
nur.url = "github:nix-community/NUR";
|
||||
winboat.url = "github:TibixDev/winboat";
|
||||
caelestia-shell = {
|
||||
url = "github:caelestia-dots/shell";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
nix-flatpak,
|
||||
nix-darwin,
|
||||
home-manager,
|
||||
plasma-manager,
|
||||
nur,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
overlays = [ nur.overlays.default ];
|
||||
forSystem =
|
||||
system:
|
||||
import nixpkgs {
|
||||
inherit system overlays;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
specialArgs = { inherit inputs; };
|
||||
nixosHosts = [
|
||||
"zp"
|
||||
"zephyrus"
|
||||
"nixvirt"
|
||||
];
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nix-flatpak,
|
||||
nix-darwin,
|
||||
home-manager,
|
||||
plasma-manager,
|
||||
nur,
|
||||
winboat,
|
||||
caelestia-shell,
|
||||
...
|
||||
} @ inputs: let
|
||||
overlays = [
|
||||
nur.overlays.default
|
||||
(final: prev: {
|
||||
winboat = winboat.packages.x86_64-linux.winboat;
|
||||
})
|
||||
];
|
||||
forSystem = system:
|
||||
import nixpkgs {
|
||||
inherit system overlays;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
specialArgs = {inherit inputs;};
|
||||
nixosHosts = [
|
||||
"zp"
|
||||
"zephyrus"
|
||||
"nixvirt"
|
||||
];
|
||||
|
||||
mkNixosSystem =
|
||||
hostname:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
inherit specialArgs;
|
||||
modules = [ ./hosts/${hostname} ];
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
# This will automatically generate nixOS config for `nixosHosts'
|
||||
# Include the module ./hosts/${hostname} by default.
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
||||
|
||||
darwinConfigurations."zen" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
mkNixosSystem = hostname:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
inherit specialArgs;
|
||||
modules = [./hosts/${hostname}];
|
||||
};
|
||||
in {
|
||||
# This will automatically generate nixOS config for `nixosHosts'
|
||||
# Include the module ./hosts/${hostname} by default.
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
||||
|
||||
darwinConfigurations."zen" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
./hosts/zen
|
||||
];
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
js0ny = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = forSystem "x86_64-linux";
|
||||
extraSpecialArgs = specialArgs;
|
||||
modules = [
|
||||
./hosts/zen
|
||||
./users/js0ny
|
||||
];
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
js0ny = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = forSystem "x86_64-linux";
|
||||
extraSpecialArgs = specialArgs;
|
||||
modules = [
|
||||
./users/js0ny
|
||||
];
|
||||
};
|
||||
"js0ny@zephyrus" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = forSystem "x86_64-linux";
|
||||
extraSpecialArgs = specialArgs;
|
||||
modules = [
|
||||
./users/js0ny/zephyrus.nix
|
||||
plasma-manager.homeModules.plasma-manager
|
||||
nix-flatpak.homeManagerModules.nix-flatpak
|
||||
];
|
||||
};
|
||||
"js0ny@nixvirt" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = forSystem "x86_64-linux";
|
||||
extraSpecialArgs = specialArgs;
|
||||
modules = [
|
||||
./users/js0ny/nixvirt.nix
|
||||
];
|
||||
};
|
||||
"js0ny@zephyrus" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = forSystem "x86_64-linux";
|
||||
extraSpecialArgs = specialArgs;
|
||||
modules = [
|
||||
./users/js0ny/zephyrus.nix
|
||||
plasma-manager.homeModules.plasma-manager
|
||||
nix-flatpak.homeManagerModules.nix-flatpak
|
||||
];
|
||||
};
|
||||
"js0ny@nixvirt" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = forSystem "x86_64-linux";
|
||||
extraSpecialArgs = specialArgs;
|
||||
modules = [
|
||||
./users/js0ny/nixvirt.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue