mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-03-13 03:24:05 +01:00
Compare commits
2 commits
4370685504
...
5105f8b1a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5105f8b1a4 | ||
|
|
74ec60d50d |
4 changed files with 22 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ self, ... }:
|
||||
{ self, lib, ... }:
|
||||
let
|
||||
inherit (self.inputs)
|
||||
disko
|
||||
|
|
@ -46,6 +46,7 @@ let
|
|||
}
|
||||
{
|
||||
my.profiles.core.enable = true;
|
||||
my.profiles.zsh.enable = lib.mkDefault true;
|
||||
}
|
||||
../modules
|
||||
../profiles
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ in
|
|||
users.users.nixremote = {
|
||||
isSystemUser = true;
|
||||
group = "nixremote";
|
||||
shell = pkgs.bashInteractive;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGYSzDdxqaNHmaaLqEvOK/vB65zvqoCebI3Nxzgg5smq root@workman"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -23,5 +23,6 @@
|
|||
./update
|
||||
./usb-iso
|
||||
./webcam
|
||||
./zsh
|
||||
];
|
||||
}
|
||||
|
|
|
|||
19
profiles/zsh/default.nix
Normal file
19
profiles/zsh/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.profiles.zsh;
|
||||
in
|
||||
{
|
||||
options.my.profiles.zsh = with lib; {
|
||||
enable = mkEnableOption "zsh profile";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
programs.zsh.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue