removed modules/home, stripped down flake.nix
This commit is contained in:
parent
ab62a75b4f
commit
098cd96811
40 changed files with 17 additions and 1378 deletions
74
flake.nix
74
flake.nix
|
|
@ -4,74 +4,34 @@
|
|||
inputs = {
|
||||
|
||||
# Nixpkgs and hardware specific configs
|
||||
# there was a way to have unstable as an overlay,
|
||||
# will set it back up, lazy rn, for now pick one
|
||||
# nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
|
||||
# alejandra ?? think its a nix code formatter
|
||||
# alejandra.url = "github:kamadorueda/alejandra/3.0.0";
|
||||
|
||||
# declaratice disks
|
||||
# declarative disks
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# everything and anything else goes here
|
||||
# think this is a nix code formatter
|
||||
# alejandra.url = "github:kamadorueda/alejandra/3.0.0";
|
||||
|
||||
# declarative dots
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-23.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# window manager (ricer friendly)
|
||||
hyprland = {
|
||||
url = "github:hyprwm/Hyprland";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = {
|
||||
# self,
|
||||
nixpkgs,
|
||||
nixos-hardware,
|
||||
disko,
|
||||
home-manager,
|
||||
hyprland,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
# common-modules = [
|
||||
# ({ config, pkgs, ... }:)
|
||||
# ];
|
||||
home-manager-config = toplevel: [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.serenity = {
|
||||
imports = [
|
||||
(import ./modules/core/home.nix)
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
in
|
||||
|
||||
{
|
||||
nixosConfigurations = {
|
||||
proserpina = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
# specialArgs = { inherit hyprland; };
|
||||
modules = [
|
||||
# nixos-hardware.nixosModules.$MODEL
|
||||
./hosts/proserpina/configuration.nix
|
||||
disko.nixosModules.disko
|
||||
] ++ home-manager-config;
|
||||
};
|
||||
outputs = { self, nixpkgs, nixos-hardware, disko, ... }: {
|
||||
nixosConfigurations = {
|
||||
proserpina = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
# nixos-hardware.nixosModules.$MODEL
|
||||
./hosts/proserpina/configuration.nix
|
||||
disko.nixosModules.disko
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue