Skip to content

Commit 295f825

Browse files
committed
kibbeh: configure
1 parent 5adc830 commit 295f825

File tree

9 files changed

+96
-130
lines changed

9 files changed

+96
-130
lines changed

.github/workflows/niveum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
system: [makanek,manakish,kabsa,zaatar,ful,fatteh]
10+
system: [makanek,manakish,kabsa,zaatar,ful,fatteh,kibbeh]
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Install QEMU (ARM)

configs/admin-essentials.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ in {
5252
pkgs.psmisc # for killall, pstree
5353
];
5454

55+
56+
security.wrappers = {
57+
pmount = {
58+
setuid = true;
59+
owner = "root";
60+
group = "root";
61+
source = "${pkgs.pmount}/bin/pmount";
62+
};
63+
pumount = {
64+
setuid = true;
65+
owner = "root";
66+
group = "root";
67+
source = "${pkgs.pmount}/bin/pumount";
68+
};
69+
};
70+
5571
environment.shellAliases = let
5672
take = pkgs.writers.writeDash "take" ''
5773
mkdir "$1" && cd "$1"

configs/bluetooth.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,4 @@
77
};
88

99
environment.systemPackages = [ pkgs.bluetuith ];
10-
11-
# services.blueman.enable = true;
12-
13-
# environment.systemPackages = [pkgs.blueman];
14-
15-
# home-manager.users.me = {services.blueman-applet.enable = true;};
1610
}

configs/default.nix

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,6 @@ in {
126126
};
127127
};
128128
}
129-
{
130-
security.wrappers = {
131-
pmount = {
132-
setuid = true;
133-
owner = "root";
134-
group = "root";
135-
source = "${pkgs.pmount}/bin/pmount";
136-
};
137-
pumount = {
138-
setuid = true;
139-
owner = "root";
140-
group = "root";
141-
source = "${pkgs.pmount}/bin/pumount";
142-
};
143-
};
144-
}
145129
{programs.command-not-found.enable = true;}
146130
{
147131
programs.gnupg = {
@@ -255,6 +239,11 @@ in {
255239
./watson.nix
256240
./wallpaper.nix
257241
./zsh.nix
242+
{
243+
home-manager.users.me.home.file.".zshrc".text = ''
244+
# nothing to see here
245+
'';
246+
}
258247
./tor.nix
259248
./stw-berlin.nix
260249
./mastodon-bot.nix

configs/zsh.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
config,
33
pkgs,
44
...
5-
}: {
6-
home-manager.users.me.home.file.".zshrc".text = ''
7-
# nothing to see here
8-
'';
9-
5+
}: let
6+
promptColours.success = "cyan";
7+
promptColours.failure = "red";
8+
in {
109
environment.systemPackages = [pkgs.atuin];
1110
environment.variables.ATUIN_CONFIG_DIR = toString (pkgs.writeTextDir "/config.toml" ''
1211
auto_sync = true
@@ -58,7 +57,7 @@
5857
5958
fpath=(${zsh-completions}/src $fpath)
6059
'';
61-
promptInit = with config.niveum; ''
60+
promptInit = ''
6261
autoload -Uz vcs_info
6362
zstyle ':vcs_info:*' enable git
6463
zstyle ':vcs_info:*' check-for-changes true

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
tabula = "root@tabula";
112112
kabsa = "root@kabsa";
113113
fatteh = "root@fatteh";
114+
kibbeh = "root@kibbeh";
114115
};
115116
in
116117
lib.attrsets.nameValuePair "deploy-${hostname}" {

secrets

Submodule secrets updated from b056302 to 04f66a7

systems/kabsa/configuration.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ in {
2020
promptColours.success = "cyan";
2121
};
2222

23-
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/dracula.yaml";
24-
2523
nix.settings = {
2624
cores = 1;
2725
max-jobs = 2;

systems/kibbeh/configuration.nix

Lines changed: 67 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,53 @@
1-
# Edit this configuration file to define what should be installed on
2-
# your system. Help is available in the configuration.nix(5) man page
3-
# and in the NixOS manual (accessible by running ‘nixos-help’).
4-
5-
{ config, pkgs, ... }:
1+
{ config, pkgs, niveumPackages, ... }:
62

73
{
8-
imports =
9-
[ # Include the results of the hardware scan.
10-
./hardware-configuration.nix
11-
];
4+
imports = [
5+
./hardware-configuration.nix
6+
../../configs/spacetime.nix
7+
../../configs/admin-essentials.nix
8+
../../configs/keyboard.nix
9+
../../configs/sound.nix
10+
../../configs/printing.nix
11+
../../configs/nix.nix
12+
../../configs/flix.nix
13+
../../configs/fonts.nix
14+
../../configs/retiolum.nix
15+
../../configs/sshd.nix
16+
../../configs/sudo.nix
17+
../../configs/zsh.nix
18+
../../configs/tor.nix
19+
];
20+
21+
age.secrets = {
22+
retiolum-rsa = {
23+
file = ../../secrets/kibbeh-retiolum-privateKey-rsa.age;
24+
mode = "400";
25+
owner = "tinc-retiolum";
26+
group = "tinc-retiolum";
27+
};
28+
retiolum-ed25519 = {
29+
file = ../../secrets/kibbeh-retiolum-privateKey-ed25519.age;
30+
mode = "400";
31+
owner = "tinc-retiolum";
32+
group = "tinc-retiolum";
33+
};
34+
};
35+
36+
services.gnome.gnome-keyring.enable = true;
37+
security.pam.services.lightdm.enableGnomeKeyring = true;
1238

13-
# Bootloader.
1439
boot.loader.systemd-boot.enable = true;
1540
boot.loader.efi.canTouchEfiVariables = true;
1641

17-
boot.initrd.luks.devices."luks-b3988d35-72a9-4e7c-992d-f500bb388554".device = "/dev/disk/by-uuid/b3988d35-72a9-4e7c-992d-f500bb388554";
18-
networking.hostName = "nixos"; # Define your hostname.
19-
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
42+
services.openssh.enable = true;
2043

21-
# Configure network proxy if necessary
22-
# networking.proxy.default = "http://user:password@proxy:port/";
23-
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
44+
boot.initrd.luks.devices."luks-b3988d35-72a9-4e7c-992d-f500bb388554".device =
45+
"/dev/disk/by-uuid/b3988d35-72a9-4e7c-992d-f500bb388554";
2446

25-
# Enable networking
47+
networking.hostName = "kibbeh";
2648
networking.networkmanager.enable = true;
2749

28-
# Set your time zone.
29-
time.timeZone = "Europe/Berlin";
30-
31-
# Select internationalisation properties.
3250
i18n.defaultLocale = "en_US.UTF-8";
33-
3451
i18n.extraLocaleSettings = {
3552
LC_ADDRESS = "de_DE.UTF-8";
3653
LC_IDENTIFICATION = "de_DE.UTF-8";
@@ -43,95 +60,47 @@
4360
LC_TIME = "de_DE.UTF-8";
4461
};
4562

46-
# Enable the X11 windowing system.
4763
services.xserver.enable = true;
48-
49-
# Enable the Pantheon Desktop Environment.
5064
services.xserver.displayManager.lightdm.enable = true;
5165
services.xserver.desktopManager.pantheon.enable = true;
66+
# services.displayManager.autoLogin.enable = true;
67+
# services.displayManager.autoLogin.user = config.users.users.me.name;
5268

53-
# Configure keymap in X11
54-
services.xserver = {
55-
layout = "de";
56-
xkbVariant = "T3";
57-
};
58-
59-
# Configure console keymap
60-
console.keyMap = "de";
61-
62-
# Enable CUPS to print documents.
63-
services.printing.enable = true;
64-
65-
# Enable sound with pipewire.
66-
sound.enable = true;
67-
hardware.pulseaudio.enable = false;
68-
security.rtkit.enable = true;
69-
services.pipewire = {
70-
enable = true;
71-
alsa.enable = true;
72-
alsa.support32Bit = true;
73-
pulse.enable = true;
74-
# If you want to use JACK applications, uncomment this
75-
#jack.enable = true;
76-
77-
# use the example session manager (no others are packaged yet so this is enabled by default,
78-
# no need to redefine it in your config for now)
79-
#media-session.enable = true;
69+
age.secrets = {
70+
di-fm-key.file = ../../secrets/di-fm-key.age;
8071
};
8172

82-
# Enable touchpad support (enabled default in most desktopManager).
83-
# services.xserver.libinput.enable = true;
84-
85-
# Define a user account. Don't forget to set a password with ‘passwd’.
86-
users.users.kfm = {
73+
users.users.me = {
74+
name = "kfm";
8775
isNormalUser = true;
88-
description = "Kierán Meinhardt";
89-
extraGroups = [ "networkmanager" "wheel" ];
76+
description = "किरण";
77+
extraGroups = [ "networkmanager" ];
78+
password = "hackme";
9079
packages = with pkgs; [
80+
# packages TODO
9181
firefox
92-
# thunderbird
82+
thunderbird
83+
alacritty
84+
tor-browser-bundle-bin
85+
zathura
86+
okular
87+
anki-bin
88+
libreoffice
89+
xournalpp
90+
jellyfin-media-player
91+
niveumPackages.mpv-tv
92+
(niveumPackages.mpv-radio.override { di-fm-key-file = config.age.secrets.di-fm-key.path; })
93+
niveumPackages.meteo
94+
spotify
9395
];
9496
};
9597

96-
# Enable automatic login for the user.
97-
services.xserver.displayManager.autoLogin.enable = true;
98-
services.xserver.displayManager.autoLogin.user = "kfm";
99-
100-
# Allow unfree packages
101-
nixpkgs.config.allowUnfree = true;
102-
103-
# List packages installed in system profile. To search, run:
104-
# $ nix search wget
10598
environment.systemPackages = with pkgs; [
106-
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
107-
# wget
99+
htop
100+
git
101+
vim
102+
(niveumPackages.vim.override { colorscheme = "base16-gruvbox-dark-medium"; })
108103
];
109104

110-
# Some programs need SUID wrappers, can be configured further or are
111-
# started in user sessions.
112-
# programs.mtr.enable = true;
113-
# programs.gnupg.agent = {
114-
# enable = true;
115-
# enableSSHSupport = true;
116-
# };
117-
118-
# List services that you want to enable:
119-
120-
# Enable the OpenSSH daemon.
121-
# services.openssh.enable = true;
122-
123-
# Open ports in the firewall.
124-
# networking.firewall.allowedTCPPorts = [ ... ];
125-
# networking.firewall.allowedUDPPorts = [ ... ];
126-
# Or disable the firewall altogether.
127-
# networking.firewall.enable = false;
128-
129-
# This value determines the NixOS release from which the default
130-
# settings for stateful data, like file locations and database versions
131-
# on your system were taken. It‘s perfectly fine and recommended to leave
132-
# this value at the release version of the first install of this system.
133-
# Before changing this value read the documentation for this option
134-
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
135-
system.stateVersion = "23.11"; # Did you read the comment?
136-
105+
system.stateVersion = "23.11";
137106
}

0 commit comments

Comments
 (0)