wip: prepare for nix
This commit is contained in:
parent
79ed239d07
commit
6671b54dd2
32 changed files with 1282 additions and 43 deletions
56
nix/flake.nix
Normal file
56
nix/flake.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
description = "Dashie dots";
|
||||
|
||||
inputs =
|
||||
{
|
||||
flatpaks.url = "github:GermanBread/declarative-flatpak/stable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-23.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, flatpaks, hyprland }:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
homeConfigurations."dashie@spaceship" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./hardware/spaceship.nix ];
|
||||
};
|
||||
homeConfigurations."dashie@overheating" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [ ./hardware/overheating.nix ];
|
||||
};
|
||||
homeConfigurations."dashie" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
flatpaks.homeManagerModules.default
|
||||
hyprland.homeManagerModules.default
|
||||
./programs/hyprland/config.nix
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations."nixos" = nixpkgs.lib.nixosSystem {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./configuration.nix
|
||||
flatpaks.nixosModules.default
|
||||
hyprland.nixosModules.default
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.users.dashie = import ./programs/default.nix {inherit pkgs; };
|
||||
home-manager.useGlobalPkgs = true;
|
||||
}
|
||||
./programs/flatpak.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue