home-manager
This commit is contained in:
parent
c56ec41dd8
commit
6afc7f6fb5
3 changed files with 36 additions and 12 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -39,6 +39,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1706001011,
|
||||||
|
"narHash": "sha256-J7Bs9LHdZubgNHZ6+eE/7C18lZ1P6S5/zdJSdXFItI4=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "3df2a80f3f85f91ea06e5e91071fa74ba92e5084",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705312285,
|
"lastModified": 1705312285,
|
||||||
|
|
@ -136,6 +156,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aagl": "aagl",
|
"aagl": "aagl",
|
||||||
|
"home-manager": "home-manager",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixos-raspberrypi": "nixos-raspberrypi",
|
"nixos-raspberrypi": "nixos-raspberrypi",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,12 @@
|
||||||
aagl.inputs.nixpkgs.follows = "nixpkgs";
|
aagl.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
# prescurve.url = "github:taotien/prescurve";
|
# prescurve.url = "github:taotien/prescurve";
|
||||||
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
|
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, nixos-raspberrypi, aagl, prescurve, ... }@attrs:
|
# outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, nixos-raspberrypi, aagl, prescurve, ... }@attrs:
|
||||||
outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, nixos-raspberrypi, aagl, ... }@attrs:
|
outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, nixos-raspberrypi, aagl, home-manager, ... }@attrs:
|
||||||
let
|
let
|
||||||
nixos-system = (systemModules: nixpkgs.lib.nixosSystem {
|
nixos-system = (systemModules: nixpkgs.lib.nixosSystem {
|
||||||
modules = systemModules;
|
modules = systemModules;
|
||||||
|
|
@ -46,6 +48,7 @@
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
nixos-hw.common-cpu-amd
|
nixos-hw.common-cpu-amd
|
||||||
nixos-hw.common-gpu-nvidia-nonprime
|
nixos-hw.common-gpu-nvidia-nonprime
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
./systems/BASED.nix
|
./systems/BASED.nix
|
||||||
./systems/NOcomputer.nix
|
./systems/NOcomputer.nix
|
||||||
./users/tao.nix
|
./users/tao.nix
|
||||||
|
|
|
||||||
|
|
@ -91,20 +91,20 @@
|
||||||
shell = pkgs.unstable.nushell;
|
shell = pkgs.unstable.nushell;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo = {
|
security.sudo-rs.enable = true;
|
||||||
extraRules = [{
|
security.sudo-rs.extraRules = [{
|
||||||
commands = [
|
commands = [
|
||||||
{
|
{ command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows"; options = [ "NOPASSWD" ]; }
|
||||||
command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows";
|
];
|
||||||
options = [ "NOPASSWD" ];
|
groups = [ "wheel" ];
|
||||||
}
|
}];
|
||||||
];
|
|
||||||
groups = [ "wheel" ];
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
|
|
||||||
# i18n.inputMethod = {
|
# i18n.inputMethod = {
|
||||||
# enabled = "fcitx5";
|
# enabled = "fcitx5";
|
||||||
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];
|
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];
|
||||||
# };
|
# };
|
||||||
|
|
||||||
|
home-manager.users.tao = {
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue