cleanup flake a bit

This commit is contained in:
Gabriel Fontes 2022-08-01 21:52:47 -03:00
parent 7e9aa4328a
commit 2497d0c756
No known key found for this signature in database
GPG key ID: 2E54EA7BFE630916
2 changed files with 32 additions and 45 deletions

View file

@ -2,11 +2,11 @@
"nodes": {
"hardware": {
"locked": {
"lastModified": 1656933710,
"narHash": "sha256-SVG8EqY1OTJWBRY4hpct2ZR2Rk0L8hCFkug3m0ABoZE=",
"lastModified": 1659356074,
"narHash": "sha256-UwV6hZZEtchvtiTCCD/ODEv1226eam8kEgEyQb7xB0E=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "3bf48d3587d3f34f745a19ebc968b002ef5b5c5a",
"rev": "ea3efc80f8ab83cb73aec39f4e76fe87afb15a08",
"type": "github"
},
"original": {
@ -23,11 +23,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1657241847,
"narHash": "sha256-/aN3p2LaRNVXf7w92GWgXq9H5f23YRQPOvsm3BrBqzU=",
"lastModified": 1659371922,
"narHash": "sha256-lzHe7LN7reblaonfkemzfmB0aRZDt7QJ/Vbp7iyghnU=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "8160b3b45b8457d58d2b3af2aeb2eb6f47042e0f",
"rev": "d1c677ac257affed8d026f418b81ed5de2c8d963",
"type": "github"
},
"original": {
@ -38,11 +38,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1657114324,
"narHash": "sha256-fWuaUNXrHcz/ciHRHlcSO92dvV3EVS0GJQUSBO5JIB4=",
"lastModified": 1659219666,
"narHash": "sha256-pzYr5fokQPHv7CmUXioOhhzDy/XyWOIXP4LZvv/T7Mk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "a5c867d9fe9e4380452628e8f171c26b69fa9d3d",
"rev": "7b9be38c7250b22d829ab6effdee90d5e40c6e5c",
"type": "github"
},
"original": {

View file

@ -9,43 +9,30 @@
# Home manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# TODO: Add any other flake you might need
};
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'
outputs = { nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations = {
# FIXME: Replace with your hostname
your-hostname = nixosSystem {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
# FIXME replace with your hostname
your-hostname = nixpkgs.lib.nixosSystem {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
system = "x86_64-linux";
# >> Main NixOS configuration file <<
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; };
};
};
# Home configurations
# Accessible via 'home-manager'
homeConfigurations = {
# FIXME: Replace with your username@hostname
"your-name@your-hostname" = homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
# FIXME replace with your username@hostname
"your-name@your-hostname" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
# >> Main home-manager configuration file <<
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; };
};
};