cleanup flake a bit
This commit is contained in:
parent
7e9aa4328a
commit
2497d0c756
18
flake.lock
18
flake.lock
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"hardware": {
|
"hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1656933710,
|
"lastModified": 1659356074,
|
||||||
"narHash": "sha256-SVG8EqY1OTJWBRY4hpct2ZR2Rk0L8hCFkug3m0ABoZE=",
|
"narHash": "sha256-UwV6hZZEtchvtiTCCD/ODEv1226eam8kEgEyQb7xB0E=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "3bf48d3587d3f34f745a19ebc968b002ef5b5c5a",
|
"rev": "ea3efc80f8ab83cb73aec39f4e76fe87afb15a08",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -23,11 +23,11 @@
|
||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657241847,
|
"lastModified": 1659371922,
|
||||||
"narHash": "sha256-/aN3p2LaRNVXf7w92GWgXq9H5f23YRQPOvsm3BrBqzU=",
|
"narHash": "sha256-lzHe7LN7reblaonfkemzfmB0aRZDt7QJ/Vbp7iyghnU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8160b3b45b8457d58d2b3af2aeb2eb6f47042e0f",
|
"rev": "d1c677ac257affed8d026f418b81ed5de2c8d963",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -38,11 +38,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1657114324,
|
"lastModified": 1659219666,
|
||||||
"narHash": "sha256-fWuaUNXrHcz/ciHRHlcSO92dvV3EVS0GJQUSBO5JIB4=",
|
"narHash": "sha256-pzYr5fokQPHv7CmUXioOhhzDy/XyWOIXP4LZvv/T7Mk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a5c867d9fe9e4380452628e8f171c26b69fa9d3d",
|
"rev": "7b9be38c7250b22d829ab6effdee90d5e40c6e5c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
37
flake.nix
37
flake.nix
|
@ -9,43 +9,30 @@
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# TODO: Add any other flake you might need
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@inputs:
|
outputs = { nixpkgs, home-manager, ... }@inputs: {
|
||||||
let
|
|
||||||
# Bring some functions into scope (from builtins and other flakes)
|
|
||||||
inherit (nixpkgs.lib) nixosSystem;
|
|
||||||
inherit (home-manager.lib) homeManagerConfiguration;
|
|
||||||
# We'll use x86_64-linux for everything, but you can have hosts/homes for
|
|
||||||
# different systems and architectures if you want
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in {
|
|
||||||
# System configurations
|
|
||||||
# Accessible via 'nixos-rebuild'
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# FIXME: Replace with your hostname
|
# FIXME replace with your hostname
|
||||||
your-hostname = nixosSystem {
|
your-hostname = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
system = "x86_64-linux";
|
||||||
|
|
||||||
# >> Main NixOS configuration file <<
|
|
||||||
modules = [ ./nixos/configuration.nix ];
|
modules = [ ./nixos/configuration.nix ];
|
||||||
# Make our inputs available to the config (for importing modules)
|
# Pass inputs down to our config, so that they can consume flake inputs
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home configurations
|
|
||||||
# Accessible via 'home-manager'
|
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
# FIXME: Replace with your username@hostname
|
# FIXME replace with your username@hostname
|
||||||
"your-name@your-hostname" = homeManagerConfiguration {
|
"your-name@your-hostname" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
|
||||||
# >> Main home-manager configuration file <<
|
|
||||||
modules = [ ./home-manager/home.nix ];
|
modules = [ ./home-manager/home.nix ];
|
||||||
# Make our inputs available to the config (for importing modules)
|
# Pass inputs down to our config, so that they can consume flake inputs
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue