Add darkkirb user and enable git and ssh by default

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-14 11:21:55 +01:00
parent 441070fc07
commit 2d64443a9d
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
4 changed files with 83 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: {
imports = [
./zfs.nix
./users/darkkirb.nix
];
nix = {
package = pkgs.nixUnstable; # or versioned attributes like nix_2_4
@ -8,4 +9,6 @@
experimental-features = nix-command flakes
'';
};
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
}

12
config/users/darkkirb.nix Normal file
View file

@ -0,0 +1,12 @@
{ ... }: {
users.users.darkkirb = {
createHome = true;
description = "Charlotte 🦝 Delenk";
extraGroups = [
"wheel"
];
group = "users";
home = "/home/alice";
shell = "/bin/sh";
};
}

View file

@ -1,6 +0,0 @@
{ ... }: {
imports = [
./config/nixos-8gb-fsn1-1.nix
./config/default.nix
];
}

68
flake.lock Normal file
View file

@ -0,0 +1,68 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1642117744,
"narHash": "sha256-/SvxBe/m6JiRSlKIrgD6LQxee9GGewFyq+lsPxoViMY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "a5dd5d5f197724f3065fd39c59c7ccea3c8dcb8f",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1642154755,
"narHash": "sha256-hutfaWfSjrZgcJrLx7cpqofxv6By0pEU4K2xrGGgdPU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c9101439cd6e924ee1e09888e0a110973ec56dfa",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"sops-nix": "sops-nix"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1641374494,
"narHash": "sha256-a56G6Um43+0+n+yNYhRCh/mSvDdRVzQHSKcFaDEB9/8=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "7edb4b080023ef12f39262a3aa7aab31015a7a0e",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "sops-nix",
"type": "github"
}
}
},
"root": "root",
"version": 7
}