This commit is contained in:
mehbark 2023-08-14 07:45:15 -04:00
parent f223e0895a
commit d1f9e2c3ec
2 changed files with 641 additions and 639 deletions

View file

@ -1,14 +1,22 @@
{ {
description = "mehbark's NixOS configuration";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.home-manager.url = "github:nix-community/home-manager"; inputs.home-manager.url = "github:nix-community/home-manager";
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs"; inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
outputs = {self, nixpkgs, home-manager }: { outputs = inputs@{ self, nixpkgs, home-manager }: {
nixosConfigurations = { nixosConfigurations = {
nix = nixpkgs.lib.nixosSystem { nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.mbk = import ./home.nix;
}
]; ];
}; };
}; };

View file

@ -1,10 +1,5 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [
<home-manager/nixos>
];
home-manager.users.mbk = {pkgs, ...}: {
/* The home.stateVersion option does not have a default and must be set */ /* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "18.09"; home.stateVersion = "18.09";
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -630,5 +625,4 @@
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
''; '';
}; };
};
} }