Nix OS flake update
This commit is contained in:
parent
ccb9886127
commit
55bba2a8ab
2 changed files with 46 additions and 3 deletions
14
flake.nix
14
flake.nix
|
@ -9,13 +9,21 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||
nixosConfigurations = {
|
||||
"nixos-test" = nixpkgs.lib.nixosSystem {
|
||||
# nixos => hostname
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
modules = [
|
||||
./configuration.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.users.florian = import ./home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
35
home.nix
Normal file
35
home.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.username = "florian";
|
||||
home.homeDirectory = "/home/florian";
|
||||
|
||||
# link the configuration file in current directory to the specified location in home directory
|
||||
# home.file.".config/i3/wallpaper.jpg".source = ./wallpaper.jpg;
|
||||
|
||||
# link all files in `./scripts` to `~/.config/i3/scripts`
|
||||
# home.file.".config/i3/scripts" = {
|
||||
# source = ./scripts;
|
||||
# recursive = true; # link recursively
|
||||
# executable = true; # make all files executable
|
||||
# };
|
||||
|
||||
# encode the file content in nix configuration file directly
|
||||
# home.file.".xxx".text = ''
|
||||
# xxx
|
||||
# '';
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Florian RICHER";
|
||||
userEmail = "florian.richer@protonmail.com";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vim
|
||||
];
|
||||
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
Loading…
Reference in a new issue