start work on allowing use of deploy-rs
This commit is contained in:
parent
ce3cc29a94
commit
0eb6aeb456
|
@ -1,5 +1 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: { home.packages = with pkgs; [ tdesktop ]; }
|
||||||
home.packages = with pkgs; [
|
|
||||||
tdesktop
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ vivaldi vivaldi-ffmpeg-codecs vivaldi-widevine ];
|
||||||
vivaldi
|
|
||||||
vivaldi-ffmpeg-codecs
|
|
||||||
vivaldi-widevine
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: { home.packages = with pkgs; [ jq ripgrep fd pv tmux socat ]; }
|
||||||
home.packages = with pkgs; [ jq ripgrep fd pv tmux socat ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: { home.packages = with pkgs; [ neofetch inxi htop ]; }
|
||||||
home.packages = with pkgs; [ neofetch inxi htop ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
rsync
|
rsync
|
||||||
openssh
|
openssh
|
||||||
mosh
|
mosh
|
||||||
|
nmap
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,51 +14,52 @@
|
||||||
profiles.gaming
|
profiles.gaming
|
||||||
];
|
];
|
||||||
|
|
||||||
config.home-manager.users.root = { imports = with tree; [ home.base ]; };
|
config = {
|
||||||
|
home-manager.users.root = { imports = with tree; [ home.base ]; };
|
||||||
config.home-manager.users.chaoticryptidz = {
|
home-manager.users.chaoticryptidz = {
|
||||||
imports = with tree; [
|
imports = with tree; [
|
||||||
home.base
|
home.base
|
||||||
home.bluetooth
|
home.bluetooth
|
||||||
home.gui
|
home.gui
|
||||||
home.gaming
|
home.gaming
|
||||||
home.dev
|
home.dev
|
||||||
home.network_manager
|
home.network_manager
|
||||||
home.sway
|
home.sway
|
||||||
home.reversing
|
home.reversing
|
||||||
home.apps.vivaldi
|
home.apps.vivaldi
|
||||||
home.apps.telegram
|
home.apps.telegram
|
||||||
home.programming
|
home.programming
|
||||||
home.programming.languages.go
|
home.programming.languages.go
|
||||||
home.programming.languages.nix
|
home.programming.languages.nix
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
config.networking.hostName = "lappy";
|
|
||||||
config.time.timeZone = "Europe/London";
|
|
||||||
config.powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
||||||
|
|
||||||
config.boot = {
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
};
|
||||||
initrd.availableKernelModules =
|
|
||||||
[ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
||||||
kernelModules = [ "kvm-intel" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
config.fileSystems = {
|
networking.hostName = "lappy";
|
||||||
"/" = {
|
time.timeZone = "Europe/London";
|
||||||
device = "/dev/disk/by-uuid/491ec94c-5e6a-4d23-a2a6-bcf4971a6e7b";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
"/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/61F3-FD84";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config.system.stateVersion = "21.11";
|
boot = {
|
||||||
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
initrd.availableKernelModules =
|
||||||
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
kernelModules = [ "kvm-intel" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" = {
|
||||||
|
device = "/dev/disk/by-uuid/491ec94c-5e6a-4d23-a2a6-bcf4971a6e7b";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
"/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/61F3-FD84";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "21.11";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
16
outputs.nix
16
outputs.nix
|
@ -1,4 +1,4 @@
|
||||||
{ nixpkgs, home-manager, ... }@inputs:
|
{ self, nixpkgs, home-manager, deploy-rs, ... }@inputs:
|
||||||
let
|
let
|
||||||
mkTree = import ./tree.nix { inherit (nixpkgs) lib; };
|
mkTree = import ./tree.nix { inherit (nixpkgs) lib; };
|
||||||
tree = mkTree {
|
tree = mkTree {
|
||||||
|
@ -13,9 +13,15 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
legacyPackages.tree = tree;
|
#legacyPackages.tree = tree;
|
||||||
nixosConfigurations = import ./hosts {
|
nixosConfigurations = import ./hosts { inherit nixpkgs home-manager tree; };
|
||||||
nixosSystem = nixpkgs.lib.nixosSystem;
|
|
||||||
inherit nixpkgs home-manager tree;
|
deploy.nodes.lappy = {
|
||||||
|
hostname = "my.server.gov";
|
||||||
|
profiles.system = {
|
||||||
|
user = "root";
|
||||||
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||||
|
self.nixosConfigurations.lappy;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: { programs.steam.enable = true; }
|
||||||
programs.steam.enable = true;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: { fonts.fonts = with pkgs; [ comic-neue comic-code ]; }
|
||||||
fonts.fonts = with pkgs; [ comic-neue comic-code ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
programs.sway.enable = true;
|
programs.sway.enable = true;
|
||||||
programs.xwayland.enable = true;
|
programs.xwayland.enable = true;
|
||||||
services.xserver.enable = true;
|
#services.xserver.enable = true;
|
||||||
#systemd.services.display-manager.enable = true;
|
#systemd.services.display-manager.enable = true;
|
||||||
#services.xserver.displayManager.sddm.enable = true;
|
#services.xserver.displayManager.sddm.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,8 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups =
|
extraGroups =
|
||||||
[ "wheel" "video" "systemd-journal" "plugdev" "vfio" "input" "uinput" ];
|
[ "wheel" "video" "systemd-journal" "plugdev" "vfio" "input" "uinput" ];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL4L1eBZzYXZNGBucTn/eOFp48el9JPiYt9iXQDpBSg/ chaoticryptidz@owo.monster"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue