mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Update flake to include COSMIC repo, nixos-hardware for garrus and more
This commit is contained in:
parent
e2cf543c79
commit
d1e769c3c3
1 changed files with 20 additions and 7 deletions
27
flake.nix
27
flake.nix
|
@ -2,13 +2,17 @@
|
|||
description = "Generic System Flake file";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
|
||||
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
#nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
disko = {
|
||||
url = github:nix-community/disko;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-software-center.url = "github:snowfallorg/nix-software-center";
|
||||
nixos-cosmic = {
|
||||
url = "github:lilyinstarlight/nixos-cosmic";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -16,7 +20,7 @@
|
|||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, disko, home-manager, nixos-hardware, ... }@inputs: {
|
||||
outputs = inputs@{ self, nixpkgs, disko, nixos-cosmic, home-manager, nixos-hardware, ... }: {
|
||||
nixosConfigurations = {
|
||||
"nixos" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
@ -50,20 +54,29 @@
|
|||
|
||||
"garrus" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
# Add Disko for disk management
|
||||
disko.nixosModules.disko
|
||||
./disko-config.nix
|
||||
./gnome.nix
|
||||
# ./gnome.nix
|
||||
./garrus.nix
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.aaronh = import ./home.nix;
|
||||
}
|
||||
nixos-hardware.nixosModules.system76
|
||||
nixos-hardware.nixosModules.system76-galp5-1650
|
||||
{
|
||||
nix.settings = {
|
||||
substituters = [ "https://cosmic.cachix.org/" ];
|
||||
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
|
||||
};
|
||||
}
|
||||
nixos-cosmic.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -98,7 +111,7 @@
|
|||
./hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue