mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 20:30:05 +00:00
We do a little refactoring + plasma theming
This commit is contained in:
parent
05b36550a3
commit
39dd3f47c8
22 changed files with 257 additions and 397 deletions
67
flake.nix
67
flake.nix
|
@ -5,46 +5,51 @@
|
|||
# Nixpkgs
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
# Gnome testing branch (getting new major versions earlier)
|
||||
# gnomeNixpkgs.url = "github:NixOS/nixpkgs/gnome";
|
||||
|
||||
# Home manager
|
||||
home-manager.url = "github:nix-community/home-manager/master";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
# Catppuccinifier
|
||||
catppuccinifier = {
|
||||
url = "github:lighttigerXIV/catppuccinifier";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# TODO: Add any other flake you might need
|
||||
# hardware.url = "github:nixos/nixos-hardware";
|
||||
|
||||
# Shameless plug: looking for a way to nixify your themes and make
|
||||
# everything match nicely? Try nix-colors!
|
||||
# nix-colors.url = "github:misterio77/nix-colors";
|
||||
# Plasma manager
|
||||
plasma-manager = {
|
||||
url = "github:pjones/plasma-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
catppuccinifier,
|
||||
...
|
||||
} @ inputs: let
|
||||
outputs = { self, nixpkgs, home-manager, plasma-manager, ... } @inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
|
||||
# Supported systems for this flake
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
# Function that generates an attribute by calling a function you pass to it
|
||||
# It takes each system as an argument
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
in {
|
||||
# My custom packages
|
||||
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
|
||||
|
||||
# My reusable modules for nixos
|
||||
nixosModules = import ./modules/nixos;
|
||||
|
||||
# My reusable modules for home-manager
|
||||
homeManagerModules = import ./modules/home-manager;
|
||||
|
||||
# NixOS configuration entrypoint
|
||||
# Available through 'nixos-rebuild --flake .#your-hostname'
|
||||
nixosConfigurations = {
|
||||
# FIXME replace with your hostname
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs catppuccinifier;};
|
||||
# > Our main nixos configuration file <
|
||||
puzzlevision = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
|
||||
modules = [
|
||||
./nixos/configuration.nix
|
||||
./nixos/modules/desktop/kde.nix
|
||||
./hosts/puzzlevision/configuration.nix
|
||||
./modules/nixos/desktop/kde.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -52,13 +57,13 @@
|
|||
# Standalone home-manager configuration entrypoint
|
||||
# Available through 'home-manager --flake .#your-username@your-hostname'
|
||||
homeConfigurations = {
|
||||
"jo@nixos" = home-manager.lib.homeManagerConfiguration {
|
||||
"jo@puzzlevision" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
# > Our main home-manager configuration file <
|
||||
modules = [
|
||||
./home-manager/home.nix
|
||||
];
|
||||
./home-manager/puzzlevision/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue