started home-manager config
This commit is contained in:
parent
7531e2f3ef
commit
56cd99d8bf
2 changed files with 37 additions and 2 deletions
|
@ -1,11 +1,18 @@
|
||||||
{
|
{
|
||||||
description = "Nix flake for basic configuration";
|
description = "Nix flake for basic configuration, for surface and desktop";
|
||||||
|
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
url = github:nix-community/home-manager;
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{nixpkgs, ...}:
|
|
||||||
|
outputs = inputs@{nixpkgs, home-manager, ...}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
@ -22,6 +29,12 @@
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./desktop-config.nix
|
./desktop-config.nix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.twoneis = import ./home.nix
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixConfigurations.nixsurface = nixpkgs.lib.nixosSystem {
|
nixConfigurations.nixsurface = nixpkgs.lib.nixosSystem {
|
||||||
|
@ -29,6 +42,12 @@
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./surface-config.nix
|
./surface-config.nix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.twoneis = import ./home.nix
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
16
base-system/home.nix
Normal file
16
base-system/home.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, pkgs, ... }
|
||||||
|
|
||||||
|
{
|
||||||
|
# Set username and home directory
|
||||||
|
home.username = "twoneis";
|
||||||
|
home.homeDirectory = "/home/twoneis";
|
||||||
|
|
||||||
|
# Enable home manager (with self config)
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "twoneis";
|
||||||
|
userEmail = "sanjay29@sapura.de";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue