Remove the temp user for lxsameer
This commit is contained in:
parent
1599e53849
commit
1d0b580ad1
38
flake.lock
38
flake.lock
|
@ -10,11 +10,11 @@
|
|||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1712079060,
|
||||
"narHash": "sha256-/JdiT9t+zzjChc5qQiF+jhrVhRt8figYH29rZO7pFe4=",
|
||||
"lastModified": 1714136352,
|
||||
"narHash": "sha256-BtWQ2Th/jamO1SlD+2ASSW5Jaf7JhA/JLpQHk0Goqpg=",
|
||||
"owner": "ryantm",
|
||||
"repo": "agenix",
|
||||
"rev": "1381a759b205dff7a6818733118d02253340fd5e",
|
||||
"rev": "24a7ea390564ccd5b39b7884f597cfc8d7f6f44e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -197,11 +197,11 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1713406758,
|
||||
"narHash": "sha256-kwZvhmx+hSZvjzemKxsAqzEqWmXZS47VVwQhNrINORQ=",
|
||||
"lastModified": 1714103775,
|
||||
"narHash": "sha256-kcBiIrmqzt3bNTr2GMBfAyA+on8BEKO1iKzzDFQZkjI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "1efd500e9805a9efbce401ed5999006d397b9f11",
|
||||
"rev": "285e26465a0bae510897ca04da26ce6307c652b4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -260,11 +260,11 @@
|
|||
"noether": "noether"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1713556431,
|
||||
"narHash": "sha256-M/ZdNssBX9t2qRbbTELUtaAnL0UlRgxGKwbgDd+/kIo=",
|
||||
"lastModified": 1714395554,
|
||||
"narHash": "sha256-rfRnuuFwSNkVCb4bGc8+gofr6mpT3y414w4ZGSl1SQw=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "259379d20d979aff1726d01afcf602a75151bf05",
|
||||
"revCount": 1124,
|
||||
"rev": "a9b7a40473da579dcb850d9ab37c88b4ae65bf38",
|
||||
"revCount": 1131,
|
||||
"type": "git",
|
||||
"url": "https://devheroes.codes/FG42/FG42"
|
||||
},
|
||||
|
@ -480,11 +480,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1712537332,
|
||||
"narHash": "sha256-yYlxv1sg/TNl6hghjAe0ct+/p5PwXiT1mpuaExjhR88=",
|
||||
"lastModified": 1713783234,
|
||||
"narHash": "sha256-3yh0nqI1avYUmmtqqTW3EVfwaLE+9ytRWxsA5aWtmyI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-generators",
|
||||
"rev": "d942db8df8ee860556a38754f15b8d03bf7e6933",
|
||||
"rev": "722b512eb7e6915882f39fff0e4c9dd44f42b77e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -495,11 +495,11 @@
|
|||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1713521961,
|
||||
"narHash": "sha256-EwR8wW9AqJhSIY+0oxWRybUZ32BVKuZ9bjlRh8SJvQ8=",
|
||||
"lastModified": 1714201532,
|
||||
"narHash": "sha256-nk0W4rH7xYdDeS7k1SqqNtBaNrcgIBYNmOVc8P2puEY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "5d48925b815fd202781bfae8fb6f45c07112fdb2",
|
||||
"rev": "53db5e1070d07e750030bf65f1b9963df8f0c678",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -510,11 +510,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1713254108,
|
||||
"narHash": "sha256-0TZIsfDbHG5zibtlw6x0yOp3jkInIGaJ35B7Y4G8Pec=",
|
||||
"lastModified": 1713805509,
|
||||
"narHash": "sha256-YgSEan4CcrjivCNO5ZNzhg7/8ViLkZ4CB/GrGBVSudo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2fd19c8be2551a61c1ddc3d9f86d748f4db94f00",
|
||||
"rev": "1e1dc66fe68972a76679644a5577828b6a7e8be4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
};
|
||||
|
||||
fg42.url = "git+https://devheroes.codes/FG42/FG42";
|
||||
#g42.url = "/home/lxsameer/src/fg42";
|
||||
#fg42.url = "/home/lxsameer/src/fg42";
|
||||
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
params:
|
||||
rec {
|
||||
zshModule = {config, pkgs, ...}: {
|
||||
zshModule = { config, pkgs, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions.enable = true;
|
||||
|
@ -24,81 +24,82 @@ rec {
|
|||
};
|
||||
};
|
||||
|
||||
user = {config, pkgs, inputs, ...}:
|
||||
user = { config, pkgs, inputs, ... }:
|
||||
let
|
||||
rager = pkgs.callPackage ../../derivations/rager.nix {
|
||||
ageBin = "${pkgs.rage}/bin/rage";
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
zshModule
|
||||
inputs.agenix.nixosModules.default
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
zshModule
|
||||
inputs.agenix.nixosModules.default
|
||||
|
||||
];
|
||||
];
|
||||
|
||||
# (r)age by default can't find age-plugin-yubikey during the configuration
|
||||
# this is a wrapper to force age-plugin-yubikey into its PATH
|
||||
age.ageBin = "${rager}/bin/rager";
|
||||
environment.systemPackages = [
|
||||
(inputs.agenix.packages.x86_64-linux.default.override { ageBin = "${rager}/bin/rager"; })
|
||||
];
|
||||
# (r)age by default can't find age-plugin-yubikey during the configuration
|
||||
# this is a wrapper to force age-plugin-yubikey into its PATH
|
||||
age.ageBin = "${rager}/bin/rager";
|
||||
environment.systemPackages = [
|
||||
(inputs.agenix.packages.x86_64-linux.default.override { ageBin = "${rager}/bin/rager"; })
|
||||
];
|
||||
|
||||
|
||||
age.identityPaths = [
|
||||
# This is an actual private key, we should avoid
|
||||
# including it in the store
|
||||
"/home/lxsameer/.ssh/universe"
|
||||
age.identityPaths = [
|
||||
# This is an actual private key, we should avoid
|
||||
# including it in the store
|
||||
"/home/lxsameer/.ssh/universe"
|
||||
|
||||
# Since these are stubs, its ok to include them in the store
|
||||
./yubikey_1.stub.id
|
||||
./yubikey_2.stub.id
|
||||
# Since these are stubs, its ok to include them in the store
|
||||
./yubikey_1.stub.id
|
||||
./yubikey_2.stub.id
|
||||
|
||||
];
|
||||
];
|
||||
|
||||
age.secrets.user.file = ../../secrets/lxsameer/user.age;
|
||||
age.secrets.user.file = ../../secrets/lxsameer/user.age;
|
||||
|
||||
users = {
|
||||
groups.lxsameer = {
|
||||
gid = 1000;
|
||||
users = {
|
||||
groups.lxsameer = {
|
||||
gid = 1000;
|
||||
};
|
||||
|
||||
# users.lxsameer1 = {
|
||||
# isNormalUser = true;
|
||||
# shell = pkgs.zsh;
|
||||
# uid = 9000;
|
||||
# group = "lxsameer";
|
||||
|
||||
# extraGroups = [
|
||||
# "wheel"
|
||||
# "networkmanager"
|
||||
# ];
|
||||
# password = "123123";
|
||||
# };
|
||||
users.lxsameer = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
uid = 1000;
|
||||
group = "lxsameer";
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"dialout"
|
||||
"video"
|
||||
"kvm"
|
||||
];
|
||||
# hashedPasswordFile = config.age.secrets.user.path;
|
||||
#password = "123123";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG3aV2dwnll3KxFR57Oj6Br51c7gJ/pkRa+IkKM6slve lxsameer@lxsameer.com"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
users.lxsameer1 = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
uid = 9000;
|
||||
group = "lxsameer";
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
password = "123123";
|
||||
};
|
||||
users.lxsameer = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
uid = 1000;
|
||||
group = "lxsameer";
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"dialout"
|
||||
"video"
|
||||
"kvm"
|
||||
];
|
||||
# hashedPasswordFile = config.age.secrets.user.path;
|
||||
#password = "123123";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG3aV2dwnll3KxFR57Oj6Br51c7gJ/pkRa+IkKM6slve lxsameer@lxsameer.com"
|
||||
];
|
||||
nix.settings = {
|
||||
trusted-users = [ "root" "@wheel" "lxsameer" "lxsameer1" ];
|
||||
};
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = [ "root" "@wheel" "lxsameer" "lxsameer1" ];
|
||||
};
|
||||
};
|
||||
|
||||
desktop = import ./desktop.nix;
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ in
|
|||
remmina
|
||||
|
||||
xclip
|
||||
|
||||
tlrc
|
||||
];
|
||||
|
||||
# starship - an customizable prompt for any shell
|
||||
|
|
Loading…
Reference in New Issue