Created basic NixOS and home-manager flake
This commit is contained in:
parent
17687db113
commit
06e98520af
9 changed files with 420 additions and 0 deletions
50
flake.nix
Normal file
50
flake.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
description = "Bo's NixOS flake :]";
|
||||
|
||||
inputs = {
|
||||
# This flake is currently set to use the latest stable branche of nixpkgs, this being 25.05
|
||||
# Use `nix flake update` to update to the latest commit on the branche given below
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
|
||||
# Use home-manager and make home-manager pull its packages from nixpkgs (input entered above)
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, ... }: {
|
||||
nixosConfigurations = {
|
||||
|
||||
# Orchid is the name given for workstation installs
|
||||
# Use `nixos-rebuild switch --flake .#Orchid` to build for this configuration
|
||||
Orchid = nixpkgs.lib.nixosSystem {
|
||||
modules =
|
||||
[
|
||||
./hosts/default.nix # Global default configuration
|
||||
./hosts/Orchid/configuration.nix # Machine-specific configuration
|
||||
|
||||
# Other modules
|
||||
./modules/nixos/kde.nix
|
||||
#./modules/nixos/gnome.nixlib
|
||||
|
||||
# Imports home-manager
|
||||
inputs.home-manager.nixosModules.default {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.users.bo = import ./hosts/Orchid/home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Moonlight is the name given for server installs
|
||||
# Use `nixos-rebuild switch --flake .#Moonlight` to build for this configuration
|
||||
Neptune = {
|
||||
modules = [ ./hosts/Moonlight/configuration.nix ];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue