mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 09:50:14 +08:00
rename
This commit is contained in:
parent
00e46ff829
commit
25e8acb0ec
4 changed files with 65 additions and 66 deletions
128
flake.nix
128
flake.nix
|
|
@ -54,70 +54,70 @@
|
|||
);
|
||||
};
|
||||
in
|
||||
{
|
||||
# The "name" in nixosConfigurations.${name} should match the `hostname`
|
||||
#
|
||||
nixosConfigurations = {
|
||||
p71 = mkComputer
|
||||
./hosts/p71.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
|
||||
./features/desktopish
|
||||
#./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
./features/server/devserver.nix
|
||||
./features/ema/emanote.nix
|
||||
./features/server/harden.nix
|
||||
#./features/virtualbox.nix
|
||||
./features/lxd.nix
|
||||
#./features/server-mode.nix
|
||||
# ./features/postgrest.nix
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
x1c7 = mkComputer
|
||||
./hosts/x1c7.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
./features/server/harden.nix
|
||||
./features/distributed-build.nix
|
||||
./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
];
|
||||
wsl = mkComputer
|
||||
./hosts/wsl.nix
|
||||
[
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
};
|
||||
|
||||
# non-NixOS systems
|
||||
homeConfigurations =
|
||||
let
|
||||
username = "srid";
|
||||
baseConfiguration = {
|
||||
programs.home-manager.enable = true;
|
||||
home.username = "srid";
|
||||
home.homeDirectory = "/home/srid";
|
||||
};
|
||||
mkHomeConfig = cfg: home-manager.lib.homeManagerConfiguration {
|
||||
inherit username system;
|
||||
homeDirectory = "/home/${username}";
|
||||
configuration = baseConfiguration // cfg;
|
||||
};
|
||||
in
|
||||
{
|
||||
"P71" = mkHomeConfig (
|
||||
import ./home.nix {
|
||||
inherit inputs system;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
}
|
||||
);
|
||||
# FIXME: This is broken on Clear Linux
|
||||
"x1c7" = mkHomeConfig {
|
||||
programs.git = import ./home/git.nix;
|
||||
programs.tmux = import ./home/tmux.nix;
|
||||
};
|
||||
};
|
||||
{
|
||||
# The "name" in nixosConfigurations.${name} should match the `hostname`
|
||||
#
|
||||
nixosConfigurations = {
|
||||
p71 = mkComputer
|
||||
./hosts/p71.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
|
||||
./features/desktopish
|
||||
#./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
./features/server/devserver.nix
|
||||
./features/ema/emanote.nix
|
||||
./features/server/harden.nix
|
||||
#./features/virtualbox.nix
|
||||
./features/lxd.nix
|
||||
#./features/server-mode.nix
|
||||
# ./features/postgrest.nix
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
x1c7 = mkComputer
|
||||
./hosts/x1c7.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
./features/server/harden.nix
|
||||
./features/distributed-build.nix
|
||||
./features/gnome.nix
|
||||
./features/desktopish/guiapps.nix
|
||||
];
|
||||
thebeast = mkComputer
|
||||
./hosts/thebeast.nix
|
||||
[
|
||||
./features/server/devserver.nix
|
||||
];
|
||||
};
|
||||
|
||||
# non-NixOS systems
|
||||
homeConfigurations =
|
||||
let
|
||||
username = "srid";
|
||||
baseConfiguration = {
|
||||
programs.home-manager.enable = true;
|
||||
home.username = "srid";
|
||||
home.homeDirectory = "/home/srid";
|
||||
};
|
||||
mkHomeConfig = cfg: home-manager.lib.homeManagerConfiguration {
|
||||
inherit username system;
|
||||
homeDirectory = "/home/${username}";
|
||||
configuration = baseConfiguration // cfg;
|
||||
};
|
||||
in
|
||||
{
|
||||
"P71" = mkHomeConfig (
|
||||
import ./home.nix {
|
||||
inherit inputs system;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
}
|
||||
);
|
||||
# FIXME: This is broken on Clear Linux
|
||||
"x1c7" = mkHomeConfig {
|
||||
programs.git = import ./home/git.nix;
|
||||
programs.tmux = import ./home/tmux.nix;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
let
|
||||
defaultUser = "srid";
|
||||
syschdemd = import ./wsl/syschdemd.nix { inherit lib pkgs config defaultUser; };
|
||||
syschdemd = import ./thebeast/syschdemd.nix { inherit lib pkgs config defaultUser; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -17,7 +17,6 @@ in
|
|||
environment.etc."resolv.conf".enable = false;
|
||||
|
||||
networking.dhcpcd.enable = false;
|
||||
networking.hostName = "wsl";
|
||||
|
||||
users.users.${defaultUser} = {
|
||||
isNormalUser = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue