Compare commits

...

9 commits

Author SHA1 Message Date
Payas Relekar
a51d487146 Remove nixos-wsl 2023-08-20 19:15:32 +05:30
Payas Relekar
a10dff9eee Revert "bebop: Add new SSH key for hermes"
This reverts commit 88b068c0a6.
2023-08-20 18:20:04 +05:30
Payas Relekar
88b068c0a6 bebop: Add new SSH key for hermes
Because looks like there is a conflict with known_hosts for same key
2023-08-20 18:08:07 +05:30
Payas Relekar
85dfce6c73 syncthing: Change device id for Hermes 2023-08-20 17:58:09 +05:30
Payas Relekar
bc849614f0 Revert "hermes: Minor package definition change"
This reverts commit 8ec7482bfe.
2023-08-20 14:37:56 +05:30
Payas Relekar
8ec7482bfe hermes: Minor package definition change 2023-08-20 14:35:39 +05:30
Payas Relekar
e0734de222 hermes: Enable bluetooth 2023-08-20 14:28:42 +05:30
Payas Relekar
17e53b962d hermes: minor refactor, + remove env vars for WSL 2023-08-20 14:25:03 +05:30
Payas Relekar
13bdffe9fd flake.lock: 2023_08_20 2023-08-20 14:14:01 +05:30
5 changed files with 40 additions and 138 deletions

View file

@ -80,40 +80,6 @@
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1689068808,
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -142,11 +108,11 @@
]
},
"locked": {
"lastModified": 1692260837,
"narHash": "sha256-2FpkX1zl+7ni7djK7NeE1ZGupRUwZgjW+RPCSBgDf4k=",
"lastModified": 1692503956,
"narHash": "sha256-MOA6FKc1YgfGP3ESnjSYfsyJ1BXlwV5pGlY/u5XdJfY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "6a94c1a59737783c282c4031555a289c28b961e4",
"rev": "958c06303f43cf0625694326b7f7e5475b1a2d5c",
"type": "github"
},
"original": {
@ -157,11 +123,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1691871742,
"narHash": "sha256-6yDNjfbAMpwzWL4y75fxs6beXHRANfYX8BNSPjYehck=",
"lastModified": 1692373088,
"narHash": "sha256-EPgCecdc9I8aTdmDNoO1l7R72r2WPhZRcesV4nzxBj8=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "430a56dd16fe583a812b2df44dca002acab2f4f6",
"rev": "7f1836531b126cfcf584e7d7d71bf8758bb58969",
"type": "github"
},
"original": {
@ -171,28 +137,6 @@
"type": "github"
}
},
"nixos-wsl": {
"inputs": {
"flake-compat": "flake-compat_2",
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1690553050,
"narHash": "sha256-pK3kF30OykL3v6P8UP6ipihlS34KoGq9SryCj3tHrFw=",
"owner": "nix-community",
"repo": "NixOS-WSL",
"rev": "f7a95a37306c46b42e9ce751977c44c752fd5eca",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NixOS-WSL",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1671417167,
@ -211,11 +155,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1692174805,
"narHash": "sha256-xmNPFDi/AUMIxwgOH/IVom55Dks34u1g7sFKKebxUm0=",
"lastModified": 1692447944,
"narHash": "sha256-fkJGNjEmTPvqBs215EQU4r9ivecV5Qge5cF/QDLVn3U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "caac0eb6bdcad0b32cb2522e03e4002c8975c62e",
"rev": "d680ded26da5cf104dd2735a51e88d2d8f487b4d",
"type": "github"
},
"original": {
@ -231,25 +175,9 @@
"deploy-rs": "deploy-rs",
"home-manager": "home-manager_2",
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_2"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"locked": {
"lastModified": 1667395993,

View file

@ -5,10 +5,6 @@
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@ -24,7 +20,6 @@
outputs =
{ self
, nixpkgs
, nixos-wsl
, home-manager
, agenix
, nixos-hardware
@ -54,8 +49,6 @@
# Host-specific config
./hosts/hermes/configuration.nix
# nixos-wsl.nixosModules.wsl
# ./hosts/hermes/wsl.nix
./hosts/hermes/syncthing.nix
# ./hosts/hermes/backup.nix
agenix.nixosModules.age

View file

@ -1,7 +1,6 @@
{ pkgs, modulesPath, ... }:
{
imports = [ ./hardware-configuration.nix ];
nixpkgs.config.allowUnfree = true;
@ -10,7 +9,7 @@
networking = {
hostName = "hermes";
networkmanager.enable = true;
hosts = {
"192.168.0.7" = [ "bebop" ];
"192.168.0.164" = [ "titan" ];
@ -26,48 +25,24 @@
man.enable = true;
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot = {
binfmt.emulatedSystems = [ "aarch64-linux" ];
# ----
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
loader.efi.efiSysMountPoint = "/boot/efi";
supportedFilesystems = [ "ntfs" ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.supportedFilesystems = [ "ntfs" ];
# Setup keyfile
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# Setup keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# Enable swap on luks
initrd.luks.devices."luks-8271922a-e889-4f04-8e87-07f0bcde890d".device = "/dev/disk/by-uuid/8271922a-e889-4f04-8e87-07f0bcde890d";
initrd.luks.devices."luks-8271922a-e889-4f04-8e87-07f0bcde890d".keyFile = "/crypto_keyfile.bin";
# Enable swap on luks
boot.initrd.luks.devices."luks-8271922a-e889-4f04-8e87-07f0bcde890d".device = "/dev/disk/by-uuid/8271922a-e889-4f04-8e87-07f0bcde890d";
boot.initrd.luks.devices."luks-8271922a-e889-4f04-8e87-07f0bcde890d".keyFile = "/crypto_keyfile.bin";
boot.kernelPackages = pkgs.linuxPackages_latest;
# Enable networking
networking.networkmanager.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
kernelPackages = pkgs.linuxPackages_latest;
};
# Enable touchpad support (enabled default in most desktopManager).
@ -75,21 +50,27 @@
services.xserver.libinput.touchpad.naturalScrolling = true;
services.xserver.libinput.touchpad.middleEmulation = true;
services.xserver.libinput.touchpad.tapping = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# ----
# Enable sound with pipewire.
sound.enable = true;
hardware.bluetooth.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
environment = {
etc = with pkgs; {
"jdk".source = jdk;
"graal".source = graalvm19-ce;
};
variables = {
GTK_THEME = [ "Adwaita:dark" ];
GDK_DPI_SCALE = [ "1.5" ];
GDK_BACKEND = [ "wayland" ];
QT_QPA_PLATFORM = [ "wayland" ];
SDL_VIDEODRIVER = [ "wayland" ];
};
};
programs = {

View file

@ -107,7 +107,7 @@ in
# Exercism
exercism
godot
godot3
hledger
];

View file

@ -36,7 +36,7 @@ in
devices = {
hermes = {
id =
"LYFSPF4-L6C24OM-IDYZAUT-5D32FAS-FCHN7FR-CUPWEEE-YOZYBQ3-RL5T5Q6";
"DCG6TFN-JRO422C-AQWFNDT-CCT7KCX-ZXUL7OG-O5UGEC3-QPF5VWW-RNXU5Q4";
name = "hermes";
};