mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-08 18:03:08 +02:00
Signed-off-by: Alex Stan <stan.alexandru@ichb.ro>
This commit is contained in:
parent
a133d53f25
commit
f50d6a056c
2 changed files with 36 additions and 25 deletions
60
flake.nix
60
flake.nix
|
@ -1,31 +1,41 @@
|
||||||
{
|
{
|
||||||
description = "My NixOS system configuration";
|
description = "My NixOS system configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nix-software-center.url = "github:vlinkz/nix-software-center";
|
nix-software-center.url = "github:vlinkz/nix-software-center";
|
||||||
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||||||
nixosConfigurations.ultrapc = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.ultrapc = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./ultrapc/configuration.nix
|
./ultrapc/configuration.nix
|
||||||
];
|
{
|
||||||
|
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
||||||
|
nix.nixPath = [ "nixpkgs=/etc/nix/inputs/nixpkgs" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
|
||||||
|
homeConfigurations = {
|
||||||
|
ultra = home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
./ultrapc/home.nix
|
||||||
|
(args: { # https://ayats.org/blog/channels-to-flakes
|
||||||
|
xdg.configFile."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
||||||
|
home.sessionVariables.NIX_PATH = "nixpkgs=${args.config.xdg.configHome}/nix/inputs/nixpkgs$\{NIX_PATH:+:$NIX_PATH}";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
|
|
||||||
homeConfigurations = {
|
|
||||||
ultra = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
modules = [ ./ultrapc/home.nix ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ in {
|
||||||
ghostwriter
|
ghostwriter
|
||||||
skypeforlinux
|
skypeforlinux
|
||||||
man-pages
|
man-pages
|
||||||
|
ckan
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
|
|
Loading…
Reference in a new issue